]> git.ipfire.org Git - thirdparty/pdns.git/commit
Improve the way QType behaves by defining proper conversion
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Dec 2020 15:31:33 +0000 (16:31 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 10 Feb 2021 12:26:12 +0000 (13:26 +0100)
commitf4e0e6ff98dd69e9194a53b5e6fdb116e4894e1d
treec7088ee38e7b1179b4c4d9b05ee69e5f78add67a
parent528786a88c664b776f4ee7d7d205d74aef5c3680
Improve the way QType behaves by defining proper conversion
operators and a hash function.

I converted syncres.* for starters to stop using uint16_t for qtype
and use QType everywhere.  Note that I also changed const QType&
in arg lists by QType, since it makes little sense to pass a 16 bit
value by const reference.
pdns/qtype.cc
pdns/qtype.hh
pdns/syncres.cc
pdns/syncres.hh