diff --git a/lib/suppressions.cpp b/lib/suppressions.cpp index 61c2594ce..2bfb1e772 100644 --- a/lib/suppressions.cpp +++ b/lib/suppressions.cpp @@ -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 << " " << std::endl; for (const Suppression &suppression : mSuppressions) { diff --git a/lib/suppressions.h b/lib/suppressions.h index 01e26ed4f..d6a186fb3 100644 --- a/lib/suppressions.h +++ b/lib/suppressions.h @@ -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.