]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Pass an object as const ref 12162/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Oct 2022 05:56:47 +0000 (07:56 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 3 Nov 2022 11:09:54 +0000 (12:09 +0100)
Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
(cherry picked from commit fa61cf82d85f5e26178853e9b0f4be14f55565db)

pdns/qtype.hh

index f314da124da2f1398b00ad960746e3e6e77d24b7..d712317129fa6ceed46ce74d04d620d4a261ceca 100644 (file)
@@ -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();
 }