Fix Cppcheck warning: Suppressions::dump can be const

This commit is contained in:
Daniel Marjamäki 2019-06-29 07:53:32 +02:00
parent 84cc09d17c
commit 0a41f1ad6b
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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.