From cff3e04d7cbd3b5ee5623881e77b12e9111f5717 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sun, 22 Nov 2015 23:07:10 +0100 Subject: [PATCH] Mark functions overriding funcs as such Reduces number of warnings on clang. --- pdns/distributor.hh | 4 ++-- pdns/dnsparser.cc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pdns/distributor.hh b/pdns/distributor.hh index 707537499..a870aa256 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -65,11 +65,11 @@ public: SingleThreadDistributor(); typedef std::function callback_t; int question(Question *, callback_t callback) override; //!< Submit a question to the Distributor - int getQueueSize() { + int getQueueSize() override { return 0; } - bool isOverloaded() + bool isOverloaded() override { return false; } diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index f09177570..a884b347a 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -58,8 +58,8 @@ public: d_record.insert(d_record.end(), out.begin(), out.end()); } - - string getZoneRepresentation() const + + string getZoneRepresentation() const override { ostringstream str; str<<"\\# "<<(unsigned int)d_record.size()<<" "; @@ -70,13 +70,13 @@ public: } return str.str(); } - - void toPacket(DNSPacketWriter& pw) + + void toPacket(DNSPacketWriter& pw) override { pw.xfrBlob(string(d_record.begin(),d_record.end())); } - uint16_t getType() const override + uint16_t getType() const override { return d_dr.d_type; } -- 2.40.0