]> git.lyx.org Git - features.git/commitdiff
constify
authorJohn Levon <levon@movementarian.org>
Mon, 3 Jun 2002 00:41:59 +0000 (00:41 +0000)
committerJohn Levon <levon@movementarian.org>
Mon, 3 Jun 2002 00:41:59 +0000 (00:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4320 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/converter.C

index b2f6ab3bc891ad51617e4d8a1b46948f4bdee290..957993c2b0b725e9745642c7e93d0ad26a983a01 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-03  John Levon  <moz@compsoc.man.ac.uk>
+
+       * converter.C: constify a bit
 2002-06-02  John Levon  <moz@compsoc.man.ac.uk>
 
        * lyx_gui.C: check xforms version correctly
index 843d8477ed3af3e0edb5ac0adc6c72bdf4945b22..e2f662dce456f01fdc2d6fff2800d8b99cfd2cad 100644 (file)
@@ -721,12 +721,12 @@ bool Converters::move(string const & from, string const & to, bool copy)
        for (vector<string>::const_iterator it = files.begin();
             it != files.end(); ++it)
                if (prefixIs(*it, base)) {
-                       string from2 = path + *it;
+                       string const from2 = path + *it;
                        string to2 = to_base + it->substr(base.length());
                        to2 = ChangeExtension(to2, to_extension);
                        lyxerr[Debug::FILES] << "moving " << from2
                                             << " to " << to2 << endl;
-                       bool moved = (copy)
+                       bool const moved = (copy)
                                ? lyx::copy(from2, to2)
                                : lyx::rename(from2, to2);
                        if (!moved && no_errors) {