squash gcc warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22887 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-02-09 10:13:48 +00:00
parent 5b2625fdfe
commit 8711df9282

View 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 // If possible we let qt do the work, since this version does not
// need to be superfast. // 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) inline QString const toqstr(char_type ucs4)
{ {
return QString::fromUcs4(reinterpret_cast<uint const *>(&ucs4), 1); return QString::fromUcs4((uint const *)&ucs4, 1);
} }
/** /**