]> granicus.if.org Git - pdns/commitdiff
don't automatically convert between the MOADNSParser and DNSResourceRecord worlds...
authorbert hubert <bert.hubert@powerdns.com>
Sun, 27 Sep 2015 15:06:43 +0000 (17:06 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Sun, 27 Sep 2015 15:06:43 +0000 (17:06 +0200)
pdns/dns.hh

index 07c0cd98b2f816cbb378b94dd61da47266faf354..d346f0883cc15f05bb56bc9bc3f1551533131b11 100644 (file)
@@ -74,7 +74,7 @@ class DNSResourceRecord
 {
 public:
   DNSResourceRecord() : last_modified(0), signttl(0), qclass(1), d_place(ANSWER), scopeMask(0), auth(1), disabled(0) {};
-  DNSResourceRecord(const struct DNSRecord&);
+  explicit DNSResourceRecord(const struct DNSRecord&);
   ~DNSResourceRecord(){};
 
   enum Place : uint8_t {QUESTION=0, ANSWER=1, AUTHORITY=2, ADDITIONAL=3}; //!< Type describing the positioning of a DNSResourceRecord within, say, a DNSPacket