summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-01-28 17:20:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-01-28 17:20:50 (GMT)
commit0f0ae92650b5477193455712247ec037ab91613e (patch)
tree54b598f0bd7608522163e668f5079ad47506d0c0
parent6dfd523718e5879b9da5b95134572c9326b0dc80 (diff)
downloadDoxygen-0f0ae92650b5477193455712247ec037ab91613e.zip
Doxygen-0f0ae92650b5477193455712247ec037ab91613e.tar.gz
Doxygen-0f0ae92650b5477193455712247ec037ab91613e.tar.bz2
Extension during mapping not correctly replaced.
When searching whether the extension is already in the list of mapped extensions the input extension is used but when inserting the eventually corrected extension (extName) is used. In all cases the inserted extension contains a dot (`.`) , but for the input extension this is not necessarily the case. This can cause problems when searching for an extension as the search will always search wit a dot and thus find the first (is old) value.
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index ba4fae5..d387b02 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5508,7 +5508,7 @@ bool updateLanguageMapping(const QCString &extension,const QCString &language)
QCString extName = extension.lower();
if (extName.isEmpty()) return FALSE;
if (extName.at(0)!='.') extName.prepend(".");
- auto it = g_extLookup.find(extension.str());
+ auto it = g_extLookup.find(extName.str());
if (it!=g_extLookup.end())
{
g_extLookup.erase(it); // language was already register for this ext