mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
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:
parent
2b1859e8f0
commit
16fa6c5f0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user