mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
8711df9282
commit
4e7e5839bd
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user