From: Otto Moerbeek Date: Wed, 26 Oct 2022 05:56:47 +0000 (+0200) Subject: Pass an object as const ref X-Git-Tag: rec-4.8.0-beta2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43a74a8b8904899019a40da99b1fcb52d47b1b7e;p=thirdparty%2Fpdns.git Pass an object as const ref Co-authored-by: Charles-Henri Bruyand (cherry picked from commit fa61cf82d85f5e26178853e9b0f4be14f55565db) --- diff --git a/pdns/qtype.hh b/pdns/qtype.hh index f314da124d..d712317129 100644 --- a/pdns/qtype.hh +++ b/pdns/qtype.hh @@ -150,7 +150,7 @@ namespace std { }; } -inline std::ostream& operator<<(std::ostream& stream, QType qtype) +inline std::ostream& operator<<(std::ostream& stream, const QType& qtype) { return stream << qtype.toString(); }