summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorVladimír Vondruš <mosra@centrum.cz>2017-11-19 12:24:41 (GMT)
committerVladimír Vondruš <mosra@centrum.cz>2017-11-19 12:24:41 (GMT)
commitebf75c1fe8a0ff2cc9235155b6d63367944d6342 (patch)
tree82bdb1c1c02d1241022b6756944ccf5c1a60cc91 /src/util.cpp
parentd8001efd89146e04d92f5ea41ab27a7de09b6c53 (diff)
downloadDoxygen-ebf75c1fe8a0ff2cc9235155b6d63367944d6342.zip
Doxygen-ebf75c1fe8a0ff2cc9235155b6d63367944d6342.tar.gz
Doxygen-ebf75c1fe8a0ff2cc9235155b6d63367944d6342.tar.bz2
Pass strings as const references.
It has refcounting, copy-on-write and all, but this is still better.
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index d3d7dfe..8e4c5a7 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -7177,7 +7177,7 @@ void addCodeOnlyMappings()
updateLanguageMapping(".sql", "sql");
}
-SrcLangExt getLanguageFromFileName(const QCString fileName)
+SrcLangExt getLanguageFromFileName(const QCString& fileName)
{
int i = fileName.findRev('.');
if (i!=-1) // name has an extension