From 43a74a8b8904899019a40da99b1fcb52d47b1b7e Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 26 Oct 2022 07:56:47 +0200 Subject: [PATCH] Pass an object as const ref Co-authored-by: Charles-Henri Bruyand (cherry picked from commit fa61cf82d85f5e26178853e9b0f4be14f55565db) --- pdns/qtype.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.47.2