Skip to content

Commit

Permalink
changing to const ref so we don't make copies
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Sep 22, 2023
1 parent f866401 commit b27bc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libstuff/libstuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ list<int64_t> SParseIntegerList(const string& value, char separator) {
set<int64_t> SParseIntegerSet(const string& value, char separator) {
set<int64_t> valueSet;
list<string> strings = SParseList(value, separator);
for (string str : strings) {
for (const string& str : strings) {
valueSet.insert(SToInt64(str));
}
return valueSet;
Expand Down

0 comments on commit b27bc73

Please sign in to comment.