]> git.lyx.org Git - lyx.git/blobdiff - src/mover.C
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mover.C
index 52c9d0064819656f46ed507296874de1a93b9f75..f21d94fbc067b8cb28536cf36f81b4e22bbff891 100644 (file)
 #include <fstream>
 #include <sstream>
 
-
-namespace lyx {
-
 using std::ios;
 using std::string;
 
-Movers movers;
-Movers system_movers;
-
+namespace lyx {
 
 bool Mover::copy(support::FileName const & from, support::FileName const & to,
                  unsigned long int mode) const
@@ -104,7 +99,9 @@ void Movers::set(string const & fmt, string const & command)
 Mover const & Movers::operator()(string const & fmt) const
 {
        SpecialsMap::const_iterator const it = specials_.find(fmt);
-       return (it == specials_.end()) ? default_ : it->second;
+       if (it == specials_.end())
+               return default_;
+       return  it->second;
 }