]> granicus.if.org Git - pdns/commitdiff
Mark functions overriding funcs as such
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 22 Nov 2015 22:07:10 +0000 (23:07 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 22 Nov 2015 22:07:12 +0000 (23:07 +0100)
Reduces number of warnings on clang.

pdns/distributor.hh
pdns/dnsparser.cc

index 707537499f8090d04791952f45a24478693d5ff6..a870aa25679445fe6663329160ad2479b67491b3 100644 (file)
@@ -65,11 +65,11 @@ public:
   SingleThreadDistributor();
   typedef std::function<void(Answer*)> 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;
   }
index f0917757009b18da1ed2379b018562e5ce746a05..a884b347a003fbabc162fe4a8c977bb3e1200efd 100644 (file)
@@ -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;
   }