]> git.lyx.org Git - lyx.git/blobdiff - src/tex-accent.C
fix bug 2089: Touching Navigate menu crashes Lyx when a TOC inset is in a section...
[lyx.git] / src / tex-accent.C
index 7ff220d6f2f2f5db6400a41840cec9473bb5621b..ddfa1a7dfb8b8f87fdc229b5890fc170827eb512 100644 (file)
 #include <config.h>
 
 #include "tex-accent.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
@@ -97,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);
 }