X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmover.C;h=f21d94fbc067b8cb28536cf36f81b4e22bbff891;hb=d4f8fe124906af839a02d1ad3b7894e14fb69a37;hp=52c9d0064819656f46ed507296874de1a93b9f75;hpb=8e6e970d7ba017dba14bdb821f4c4489665d947c;p=lyx.git diff --git a/src/mover.C b/src/mover.C index 52c9d00648..f21d94fbc0 100644 --- a/src/mover.C +++ b/src/mover.C @@ -20,15 +20,10 @@ #include #include - -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; }