]> git.lyx.org Git - lyx.git/blobdiff - src/tex-accent.C
Fix event loop to no longer eat CPU
[lyx.git] / src / tex-accent.C
index f1fd6eb9ab6a2b3b3a2fdefe3eb0066c56ef3df1..ddfa1a7dfb8b8f87fdc229b5890fc170827eb512 100644 (file)
 
 #include <config.h>
 
-#include <cstdlib>
 #include "tex-accent.h"
-#include "lfuns.h"
-#include "support/tostr.h"
+#include "support/convert.h"
+
+#include <string>
+
+using std::string;
 
 /* the names used by TeX and XWindows for deadkeys/accents are not the same
    so here follows a table to clearify the differences. Please correct this
@@ -99,5 +101,5 @@ string const DoAccent(string const & s, tex_accent accent)
 
 string const DoAccent(char c, tex_accent accent)
 {
-       return DoAccent(tostr(c), accent);
+       return DoAccent(convert<string>(c), accent);
 }