diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 4dc7c71..0e2c5e6 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7501,7 +7501,8 @@ void addCodeOnlyMappings() SrcLangExt getLanguageFromFileName(const QCString& fileName) { QFileInfo fi(fileName); - QCString extName = fi.extension().lower().data(); + // we need only the part after the last ".", newer implementations of QFileInfo have 'suffix()' for this. + QCString extName = fi.extension(FALSE).lower().data(); if (extName.isEmpty()) extName=".no_extension"; if (extName.at(0)!='.') extName.prepend("."); int *pVal=g_extLookup.find(extName.data()); |