Skip to content

Commit abdf5ff

Browse files
committed
Make addRemarkComments take const ref
1 parent 8f88956 commit abdf5ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CppCheck::CppCheckLogger : public ErrorLogger
100100
closePlist();
101101
}
102102

103-
void addRemarkComments(std::vector<RemarkComment> remarkComments)
103+
void addRemarkComments(const std::vector<RemarkComment> &remarkComments)
104104
{
105105
mRemarkComments.insert(mRemarkComments.end(), remarkComments.begin(), remarkComments.end());
106106
}

0 commit comments

Comments
 (0)