From: André Pönitz Date: Sat, 9 Feb 2008 10:16:54 +0000 (+0000) Subject: squash gcc warning, secoind attempt X-Git-Tag: 1.6.10~6361 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4e7e5839bd2e9b69511ac5d73c14f4b9bcdb25e1;p=features.git squash gcc warning, secoind attempt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22888 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/qstring_helpers.h b/src/support/qstring_helpers.h index 206d239486..39c824fcf3 100644 --- a/src/support/qstring_helpers.h +++ b/src/support/qstring_helpers.h @@ -72,7 +72,8 @@ inline QString const toqstr(docstring const & ucs4) */ inline QString const toqstr(char_type ucs4) { - return QString::fromUcs4((uint const *)&ucs4, 1); + union { char_type c; uint i; } u = { ucs4 }; + return QString::fromUcs4(&u.i, 1); } /**