From: Otto Moerbeek Date: Wed, 26 Oct 2022 05:56:47 +0000 (+0200) Subject: Pass an object as const ref X-Git-Tag: dnsdist-1.8.0-rc1~248^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12122%2Fhead;p=thirdparty%2Fpdns.git Pass an object as const ref Co-authored-by: Charles-Henri Bruyand --- 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(); }