PKGBUILDs/extra/qt3/qt3-qstring.patch

12 lines
333 B
Diff
Raw Normal View History

2010-03-05 13:00:39 +00:00
--- src/tools/qstring.h
+++ src/tools/qstring.h
@@ -195,6 +195,8 @@
ushort unicode() const { return ucs; }
#ifdef Q_NO_PACKED_REFERENCE
ushort &unicode() { return *(&ucs); }
+#elif defined Q_NO_PACKED_POINTERS
+ ushort &unicode() { ushort& tmp = ucs; return tmp; }
#else
ushort &unicode() { return ucs; }
#endif