]> git.lyx.org Git - features.git/blobdiff - src/support/convert.C
Change MenuBackend and the other menuclasses to store a docstring. Do the required...
[features.git] / src / support / convert.C
index 262f937addd8e60bb947e0ea2c9929959dd79ef0..698365e4a7d046ce5d52711c5e9af0145c24f709 100644 (file)
 
 #include "convert.h"
 
+#include "support/docstring.h"
+
 #include <boost/lexical_cast.hpp>
 
 #include <string>
 
+using lyx::docstring;
+
 using boost::lexical_cast;
 
 using std::string;
@@ -49,6 +53,11 @@ string convert<string>(int i)
        return lexical_cast<string>(i);
 }
 
+template<>
+docstring convert<docstring>(int i)
+{
+       return lyx::from_ascii(lexical_cast<string>(i));
+}
 
 template<>
 string convert<string>(unsigned int ui)