git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4320 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-06-03 00:41:59 +00:00
parent a7eb04e559
commit b412e30ca1
2 changed files with 6 additions and 2 deletions

View 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> 2002-06-02 John Levon <moz@compsoc.man.ac.uk>
* lyx_gui.C: check xforms version correctly * lyx_gui.C: check xforms version correctly

View File

@ -721,12 +721,12 @@ bool Converters::move(string const & from, string const & to, bool copy)
for (vector<string>::const_iterator it = files.begin(); for (vector<string>::const_iterator it = files.begin();
it != files.end(); ++it) it != files.end(); ++it)
if (prefixIs(*it, base)) { if (prefixIs(*it, base)) {
string from2 = path + *it; string const from2 = path + *it;
string to2 = to_base + it->substr(base.length()); string to2 = to_base + it->substr(base.length());
to2 = ChangeExtension(to2, to_extension); to2 = ChangeExtension(to2, to_extension);
lyxerr[Debug::FILES] << "moving " << from2 lyxerr[Debug::FILES] << "moving " << from2
<< " to " << to2 << endl; << " to " << to2 << endl;
bool moved = (copy) bool const moved = (copy)
? lyx::copy(from2, to2) ? lyx::copy(from2, to2)
: lyx::rename(from2, to2); : lyx::rename(from2, to2);
if (!moved && no_errors) { if (!moved && no_errors) {