Skip to content

Commit 72b46c5

Browse files
committed
Switch to const string reference as nothing is modified
1 parent ef42d05 commit 72b46c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/variables/variable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class KeyExclusions : public std::deque<std::unique_ptr<KeyExclusion>> {
154154
KeyExclusions() {
155155
}
156156

157-
bool toOmit(std::string a) {
157+
bool toOmit(const std::string &a) {
158158
for (const auto& z : *this) {
159159
if (z->match(a)) {
160160
return true;

0 commit comments

Comments
 (0)