From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 22:03:56 +0000 (+0200) Subject: Get rid of useless affectation X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f835b8ff357406c5e6cbedaeaccbdc6cd4529887;p=features.git Get rid of useless affectation Spotted by cppcheck. --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index f77ccb73a6..1c8cc2c92a 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -967,10 +967,8 @@ string DocFileName::mangledFileName(string const & dir) const return (*it).second; string const name = absFileName(); - // Now the real work - string mname = os::internal_path(name); - // Remove the extension. - mname = support::changeExtension(name, string()); + // Now the real work. Remove the extension. + string mname = support::changeExtension(name, string()); // The mangled name must be a valid LaTeX name. // The list of characters to keep is probably over-restrictive, // but it is not really a problem.