summaryrefslogtreecommitdiff
path: root/src/analysis/checks.cpp
diff options
context:
space:
mode:
authorQuipyowert2 <38995150+Quipyowert2@users.noreply.github.com>2019-03-06 22:14:05 -0800
committerAndrei Karas <akaras@inbox.ru>2019-03-07 22:32:16 +0300
commit28c874cab7e1b272bf111150f691d6348fae1f2a (patch)
tree564fed7a30921fdbc9f51fc7e22ef3f73ce825f3 /src/analysis/checks.cpp
parent3a7fc8e3bf44b97fc584a295ead0534900851b0b (diff)
downloadparanucker-28c874cab7e1b272bf111150f691d6348fae1f2a.tar.gz
paranucker-28c874cab7e1b272bf111150f691d6348fae1f2a.tar.bz2
paranucker-28c874cab7e1b272bf111150f691d6348fae1f2a.tar.xz
paranucker-28c874cab7e1b272bf111150f691d6348fae1f2a.zip
Pass some strings by const&.
This fixes a few warnings generated by Cppcheck 1.87.
Diffstat (limited to 'src/analysis/checks.cpp')
-rw-r--r--src/analysis/checks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/checks.cpp b/src/analysis/checks.cpp
index 96a4631..fb1abad 100644
--- a/src/analysis/checks.cpp
+++ b/src/analysis/checks.cpp
@@ -67,8 +67,8 @@ std::string mergeCollection(const std::set<std::string> &col)
void reportCollections(Node *node,
const std::string &name,
- std::set<std::string> col1,
- std::set<std::string> col2)
+ const std::set<std::string>& col1,
+ const std::set<std::string>& col2)
{
std::string str1 = mergeCollection(col1);
std::string str2 = mergeCollection(col2);