From 4e7e5839bd2e9b69511ac5d73c14f4b9bcdb25e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sat, 9 Feb 2008 10:16:54 +0000 Subject: [PATCH] squash gcc warning, secoind attempt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22888 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/qstring_helpers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /**