diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-02 09:25:50 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-02 09:25:50 (GMT) |
commit | 42790d151628fb9e0dd7974b29d6794b7ce98b38 (patch) | |
tree | 3b60d4d974b5a3059b56aa4ba5ea16375adb6aad /src | |
parent | 4f4688844b3c6ff67782c2be95b2ceb195702067 (diff) | |
download | Doxygen-42790d151628fb9e0dd7974b29d6794b7ce98b38.zip Doxygen-42790d151628fb9e0dd7974b29d6794b7ce98b38.tar.gz Doxygen-42790d151628fb9e0dd7974b29d6794b7ce98b38.tar.bz2 |
Fixed missing comma and improved constness
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 4 | ||||
-rw-r--r-- | src/util.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index 943b147..9941d09 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -5376,7 +5376,7 @@ g_lang2extMap[] = { "xml", "xml", SrcLangExt_XML, ".xml" }, { "sql", "sql", SrcLangExt_SQL, ".sql" }, { "md", "md", SrcLangExt_Markdown, ".md" }, - { "lex", "lex", SrcLangExt_Lex ".l" }, + { "lex", "lex", SrcLangExt_Lex, ".l" }, { 0, 0, (SrcLangExt)0, 0 } }; @@ -5532,7 +5532,7 @@ SrcLangExt getLanguageFromCodeLang(QCString &fileName) return lang; } -QCString getFileNameExtension(QCString fn) +QCString getFileNameExtension(const QCString &fn) { if (fn.isEmpty()) return ""; int lastDot = fn.findRev('.'); @@ -333,7 +333,7 @@ QCString stripLeadingAndTrailingEmptyLines(const QCString &s,int &docLine); bool updateLanguageMapping(const QCString &extension,const QCString &parser); SrcLangExt getLanguageFromFileName(const QCString& fileName, SrcLangExt defLang=SrcLangExt_Cpp); SrcLangExt getLanguageFromCodeLang(QCString &fileName); -QCString getFileNameExtension(QCString fn); +QCString getFileNameExtension(const QCString &fn); void initDefaultExtensionMapping(); void addCodeOnlyMappings(); |