From a7c6940f14a7dd3ba3dd45b7cf2a44bf8282aca9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 16 Sep 2019 00:03:56 +0200 Subject: [PATCH] Get rid of useless affectation Spotted by cppcheck. --- src/support/FileName.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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.