From 4c22f7c57b4481d392578815f7dbc311d3ef4df4 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 28 Jan 2014 20:23:55 +0200 Subject: [PATCH] Simple fix for the current bugs --- pdns/dns.hh | 2 +- pdns/dnsrecords.cc | 8 +++++--- pdns/test-zoneparser_tng_cc.cc | 5 ++++- pdns/zoneparser-tng.cc | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) 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<