summaryrefslogtreecommitdiffstats
path: root/src/util.h
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.h
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.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index dd2f3aa..2f362fd 100644
--- a/src/util.h
+++ b/src/util.h
@@ -384,7 +384,7 @@ QCString stripLeadingAndTrailingEmptyLines(const QCString &s,int &docLine);
// const QCString &anchor="");
bool updateLanguageMapping(const QCString &extension,const QCString &parser);
-SrcLangExt getLanguageFromFileName(const QCString fileName);
+SrcLangExt getLanguageFromFileName(const QCString& fileName);
void initDefaultExtensionMapping();
void addCodeOnlyMappings();