]> granicus.if.org Git - pdns/commitdiff
dnsbackend: Make isMaster a const
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 15 Apr 2018 17:52:11 +0000 (20:52 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Sun, 15 Apr 2018 17:54:04 +0000 (20:54 +0300)
The const keyword fell to wrong side of the function,
so move it where it belongs to.

Broken in a2dfc9ea78614a9eef514a612117e507d70d4664

pdns/dnsbackend.hh

index 2ff9d146242f0526e7589c97e808109cdf204e2d..0d35c919b5e3a8917b2b7131083b7b42febcaeb2 100644 (file)
@@ -87,7 +87,7 @@ struct DomainInfo
       return DomainInfo::Native;
   }
 
-  const bool isMaster(const ComboAddress& ip)
+  bool isMaster(const ComboAddress& ip) const
   {
     for( const auto& master: masters) {
       if(ComboAddress::addressOnlyEqual()(ip, master))