From: Aki Tuomi Date: Tue, 28 Jan 2014 18:23:55 +0000 (+0200) Subject: Simple fix for the current bugs X-Git-Tag: rec-3.6.0~19^2~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1247%2Fhead;p=thirdparty%2Fpdns.git Simple fix for the current bugs --- diff --git a/pdns/dns.hh b/pdns/dns.hh index 2e9d5ef6e1..0b60ee0763 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -80,7 +80,7 @@ public: ~DNSResourceRecord(){}; void setContent(const string& content); - string getZoneRepresentation(); + string getZoneRepresentation() const; // data diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index f6df0fad96..f540419236 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -48,17 +48,19 @@ void DNSResourceRecord::setContent(const string &cont) { } } -string DNSResourceRecord::getZoneRepresentation() { +string DNSResourceRecord::getZoneRepresentation() const { ostringstream ret; switch(qtype.getCode()) { case QType::SRV: case QType::MX: ret<