Skip to content

Commit

Permalink
Update checkother.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Aug 28, 2024
1 parent 198a66e commit 6fc3b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ void CheckOther::checkPassByReference()
continue;

const bool isConst = var->isConst();
if (isConst) {
if (isConst && !var->isArray()) {
passedByValueError(var, inconclusive, isRangeBasedFor);
continue;
}
Expand Down

0 comments on commit 6fc3b04

Please sign in to comment.