]> git.lyx.org Git - features.git/commitdiff
slight speed improvement...
authorAndré Pönitz <poenitz@gmx.net>
Wed, 19 Mar 2008 22:05:54 +0000 (22:05 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 19 Mar 2008 22:05:54 +0000 (22:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23837 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSymbols.cpp

index 5486f5c1bf8f4b5e780248e0c30cd877a5edf5ea..2ae6b243efa7c65d01cb376d252b6148d25da0e4 100644 (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