]> git.lyx.org Git - lyx.git/commitdiff
squash gcc warning
authorAndré Pönitz <poenitz@gmx.net>
Sat, 9 Feb 2008 10:13:48 +0000 (10:13 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sat, 9 Feb 2008 10:13:48 +0000 (10:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22887 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/qstring_helpers.h

index 9028fad7075ef3d7e3d37fde9904cb12f34e8921..206d23948694693c48a5aee242e9f2ce08c307c1 100644 (file)
@@ -61,7 +61,7 @@ inline QString const toqstr(docstring const & ucs4)
 {
        // If possible we let qt do the work, since this version does not
        // need to be superfast.
-       return QString::fromUcs4(reinterpret_cast<uint const *>(ucs4.data()), ucs4.length());
+       return QString::fromUcs4((uint const *)ucs4.data(), ucs4.length());
 }
 
 /**
@@ -72,7 +72,7 @@ inline QString const toqstr(docstring const & ucs4)
  */
 inline QString const toqstr(char_type ucs4)
 {
-       return QString::fromUcs4(reinterpret_cast<uint const *>(&ucs4), 1);
+       return QString::fromUcs4((uint const *)&ucs4, 1);
 }
 
 /**