]> git.lyx.org Git - lyx.git/blobdiff - src/Mover.cpp
BufferParams.cpp: make Lithuanian documents compilable, fixes http://bugzilla.lyx...
[lyx.git] / src / Mover.cpp
index 9f1f0a06a12d5cc2b363f2a5302eb11c63283f77..055c293f1615ba144ded1cad5d5f385622e5c5c2 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "Mover.h"
 
+#include "support/FileName.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
 #include "support/Systemcall.h"
@@ -26,13 +27,6 @@ namespace lyx {
 
 
 bool Mover::copy(FileName const & from, FileName const & to) const
-{
-       return do_copy(from, to, to.absFilename());
-}
-
-
-bool Mover::do_copy(FileName const & from, FileName const & to,
-                   string const &) const
 {
        return from.copyTo(to);
 }
@@ -56,7 +50,7 @@ bool SpecialisedMover::do_copy(FileName const & from, FileName const & to,
                               string const & latex) const
 {
        if (command_.empty())
-               return Mover::do_copy(from, to, latex);
+               return Mover::copy(from, to);
 
        string command = libScriptSearch(command_);
        command = subst(command, "$$i", quoteName(from.toFilesystemEncoding()));