From f835b8ff357406c5e6cbedaeaccbdc6cd4529887 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. -- 2.39.5