Fix cppcheck warnings. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-12-23 15:22:02 -05:00
parent 941e5c659a
commit b7a533109d
19 changed files with 38 additions and 41 deletions
+2 -2
View File
@@ -584,12 +584,12 @@ protected:
}
return true;
}
static size_t listSize(StrList& sl) {
static size_t listSize(const StrList& sl) {
size_t out = 0;
for (const string& i : sl) out += i.length();
return out;
}
static string listString(StrList& sl) {
static string listString(const StrList& sl) {
string out;
for (const string& i : sl) out += i;
return out;