Fix Cppcheck warning: Suppressions::dump can be const
This commit is contained in:
parent
84cc09d17c
commit
0a41f1ad6b
|
@ -306,7 +306,7 @@ bool Suppressions::isSuppressedLocal(const Suppressions::ErrorMessage &errmsg)
|
|||
return false;
|
||||
}
|
||||
|
||||
void Suppressions::dump(std::ostream & out)
|
||||
void Suppressions::dump(std::ostream & out) const
|
||||
{
|
||||
out << " <suppressions>" << std::endl;
|
||||
for (const Suppression &suppression : mSuppressions) {
|
||||
|
|
|
@ -148,7 +148,7 @@ public:
|
|||
* @brief Create an xml dump of suppressions
|
||||
* @param out stream to write XML to
|
||||
*/
|
||||
void dump(std::ostream &out);
|
||||
void dump(std::ostream &out) const;
|
||||
|
||||
/**
|
||||
* @brief Returns list of unmatched local (per-file) suppressions.
|
||||
|
|
Loading…
Reference in New Issue