]> git.lyx.org Git - lyx.git/blobdiff - src/trans.C
do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.
[lyx.git] / src / trans.C
index 3646d995faca129d32ccc7c8fa5a6708a95b073f..13e52859733458c110d0c159140621fcd9f81cb9 100644 (file)
 #include "debug.h"
 #include "trans_mgr.h"
 
-using lyx::support::contains;
-using lyx::support::libFileSearch;
+
+namespace lyx {
+
+using support::contains;
+using support::libFileSearch;
 
 using std::endl;
 using std::string;
@@ -325,7 +328,7 @@ string const Trans::process(char c, TransManager & k)
 
 int Trans::load(string const & language)
 {
-       string const filename = libFileSearch("kbd", language, "kmap");
+       support::FileName const filename = libFileSearch("kbd", language, "kmap");
        if (filename.empty())
                return -1;
 
@@ -362,3 +365,6 @@ tex_accent getkeymod(string const & p)
        }
        return TEX_NOACCENT;
 }
+
+
+} // namespace lyx