]> git.lyx.org Git - features.git/commitdiff
Get rid of useless affectation
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 22:03:56 +0000 (00:03 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 22:03:56 +0000 (00:03 +0200)
Spotted by cppcheck.

src/support/FileName.cpp

index f77ccb73a665e68c952541eb70dc057f43de1e57..1c8cc2c92a220621ef7fc38d3736c22903245535 100644 (file)
@@ -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.