From: bert hubert Date: Sun, 27 Sep 2015 15:06:43 +0000 (+0200) Subject: don't automatically convert between the MOADNSParser and DNSResourceRecord worlds... X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~27^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aa228b10b758183a51bb960a6c77930c0e33642;p=thirdparty%2Fpdns.git don't automatically convert between the MOADNSParser and DNSResourceRecord worlds (wasn't happening) --- diff --git a/pdns/dns.hh b/pdns/dns.hh index 07c0cd98b2..d346f0883c 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -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