squash gcc warning, secoind attempt

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22888 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-02-09 10:16:54 +00:00
parent 8711df9282
commit 4e7e5839bd

View File

@ -72,7 +72,8 @@ inline QString const toqstr(docstring const & ucs4)
*/ */
inline QString const toqstr(char_type 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);
} }
/** /**