]> git.lyx.org Git - lyx.git/blobdiff - src/Mover.cpp
Generate the magic label always. We'll need it other times, when we do
[lyx.git] / src / Mover.cpp
index 4837350830e3778e572221e6f9d82d2d300337fa..81d13d2a5df4277aa5d674492fb5d10f146a0f48 100644 (file)
@@ -12,9 +12,9 @@
 
 #include "Mover.h"
 
+#include "support/FileName.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
-#include "support/lyxlib.h"
 #include "support/Systemcall.h"
 
 #include <fstream>
@@ -35,7 +35,7 @@ bool Mover::copy(FileName const & from, FileName const & to) const
 bool Mover::do_copy(FileName const & from, FileName const & to,
                    string const &) const
 {
-       return from.copyTo(to, true);
+       return from.copyTo(to);
 }
 
 
@@ -49,7 +49,7 @@ bool Mover::rename(FileName const & from,
 bool Mover::do_rename(FileName const & from, FileName const & to,
                      string const &) const
 {
-       return from.renameTo(to);
+       return from.moveTo(to);
 }