slight speed improvement...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23837 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-03-19 22:05:54 +00:00
parent 2b1859e8f0
commit 16fa6c5f0f

View File

@ -148,11 +148,9 @@ const int no_blocks = sizeof(unicode_blocks) / sizeof(UnicodeBlocks);
QString getCodePoint(char_type c)
{
QString cp = QString::number(c, 16);
while (cp.size() < 4)
cp.prepend('0');
cp.prepend("0x");
return cp;
char buf[10];
sprintf(buf, "0x%04x", c);
return QLatin1String(buf);
}
} // namespace anon