]> git.lyx.org Git - lyx.git/blobdiff - src/Mover.h
Safer temp file creation with regards to double slash.
[lyx.git] / src / Mover.h
index c07eeb3ee8a6741fb6ea820f0c76e32d826411fd..3f4585bb53217d13047fdf8e7b1f1d18b5ce260a 100644 (file)
@@ -36,8 +36,7 @@ public:
         *  \returns true if successful.
         */
        bool
-       copy(support::FileName const & from, support::FileName const & to,
-            unsigned long int mode = (unsigned long int)-1) const;
+       copy(support::FileName const & from, support::FileName const & to) const;
 
        /** Copy file @c from to @c to.
         *  \see SpecialisedMover::SpecialisedMover() for an explanation of
@@ -49,10 +48,9 @@ public:
         */
        bool
        copy(support::FileName const & from, support::FileName const & to,
-            std::string const & latex,
-            unsigned long int mode = (unsigned long int)-1) const
+            std::string const & latex) const
        {
-               return do_copy(from, to, latex, mode);
+               return do_copy(from, to, latex);
        }
 
        /** Rename file @c from as @c to.
@@ -82,7 +80,7 @@ public:
 protected:
        virtual bool
        do_copy(support::FileName const & from, support::FileName const & to,
-               std::string const &, unsigned long int mode) const;
+               std::string const &) const;
 
        virtual bool
        do_rename(support::FileName const & from, support::FileName const & to,
@@ -131,7 +129,7 @@ public:
 private:
        virtual bool
        do_copy(support::FileName const & from, support::FileName const & to,
-               std::string const & latex, unsigned long int mode) const;
+               std::string const & latex) const;
 
        virtual bool
        do_rename(support::FileName const & from, support::FileName const & to,