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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c22f7c57b4481d392578815f7dbc311d3ef4df4;p=pdns Simple fix for the current bugs --- diff --git a/pdns/dns.hh b/pdns/dns.hh index 2e9d5ef6e..0b60ee076 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 f6df0fad9..f54041923 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<