commit a7c6940f14a7dd3ba3dd45b7cf2a44bf8282aca9
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Mon Sep 16 00:03:56 2019 +0200
Get rid of useless affectation
Spotted by cppcheck.
---
src/support/FileName.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp
index f77ccb7..1c8cc2c 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.