* src/converter.C

(Converters::move): Use removeExtension and reuse variable 'path'


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16358 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-21 11:46:13 +00:00
parent c865de2c05
commit 33ca420a4a

View File

@ -52,6 +52,7 @@ using support::onlyPath;
using support::Path;
using support::prefixIs;
using support::quoteName;
using support::removeExtension;
using support::split;
using support::subst;
using support::Systemcall;
@ -507,12 +508,11 @@ bool Converters::move(string const & fmt,
bool no_errors = true;
string const path = onlyPath(from.absFilename());
string const base = onlyFilename(changeExtension(from.absFilename(), string()));
string const to_base = changeExtension(to.absFilename(), string());
string const base = onlyFilename(removeExtension(from.absFilename()));
string const to_base = removeExtension(to.absFilename());
string const to_extension = getExtension(to.absFilename());
vector<string> const files = dirList(
FileName(onlyPath(from.absFilename())),
vector<string> const files = dirList(FileName(path),
getExtension(from.absFilename()));
for (vector<string>::const_iterator it = files.begin();
it != files.end(); ++it)