]> git.lyx.org Git - lyx.git/blobdiff - src/support/tests/check_convert.cpp
Remove non-copyable idioms
[lyx.git] / src / support / tests / check_convert.cpp
index 7854a30e916b1e29e4d71005e4cd5a5e88ecf633..fdc008f5ee03a21b117c49caaee5b7d923744785 100644 (file)
@@ -1,20 +1,14 @@
 #include <config.h>
 
 #include "../convert.h"
-#include "../docstring.h"
 
 #include <iostream>
+#include <string>
 
 using lyx::convert;
 
 using namespace std;
 
-
-namespace lyx {
-       docstring const _(string const & s) { return from_ascii(s); }
-}
-
-
 void convert_int()
 {
        cout << convert<int>("123") << '\n'
@@ -84,7 +78,7 @@ void convert_string()
 
             << convert<string>('a') << '\n'
             << convert<string>(1.0) << '\n'
-            << convert<string>(1.1) << endl;
+            << convert<string>(1.5) << endl;
 }
 
 int main()