Skip to content

Commit

Permalink
Mark functions overriding funcs as such
Browse files Browse the repository at this point in the history
Reduces number of warnings on clang.
  • Loading branch information
zeha committed Nov 22, 2015
1 parent d12cea0 commit cff3e04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pdns/distributor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
10 changes: 5 additions & 5 deletions pdns/dnsparser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class UnknownRecordContent : public DNSRecordContent

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()<<" ";
Expand All @@ -70,13 +70,13 @@ class UnknownRecordContent : public DNSRecordContent
}
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;
}
Expand Down

0 comments on commit cff3e04

Please sign in to comment.