all,
i got repy from qt-bugs@trolltech.com concerning this bug.
thanks to Jason.
hope this help.
best regards,
sliawati
--forwarded message--
This was a known issue with gcc 4.
I have attached the patch that fix this problem.
Regards,
Jason Barron, Support Engineer
Trolltech ASA, Oslo
--end of forwarded--
--the patch.diff file--
--- src/corelib/tools/qchar.h 2006-08-10 15:42:44 -0000
+++ src/corelib/tools/qchar.h 2006-08-10 15:42:44 -0000
@@ -211,7 +211,7 @@
inline const char toLatin1() const;
inline const ushort unicode() const { return ucs; }
#ifdef Q_NO_PACKED_REFERENCE
- inline ushort &unicode() { return *((ushort*)&ucs); }
+ inline ushort &unicode() { return const_cast<ushort&>(ucs); }
#else
inline ushort &unicode() { return ucs; }
#endif
--end of file--
Bookmarks