diff options
author | albert-github <albert.tests@gmail.com> | 2021-01-28 17:20:50 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-01-28 17:20:50 (GMT) |
commit | 0f0ae92650b5477193455712247ec037ab91613e (patch) | |
tree | 54b598f0bd7608522163e668f5079ad47506d0c0 /src | |
parent | 6dfd523718e5879b9da5b95134572c9326b0dc80 (diff) | |
download | Doxygen-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 2 |
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 |