Commit fd910bd5 authored by Max Kellermann's avatar Max Kellermann

db/upnp: use "override" instead of "virtual"

parent c6086bed
...@@ -124,7 +124,7 @@ public: ...@@ -124,7 +124,7 @@ public:
} }
protected: protected:
virtual void StartElement(const XML_Char *name, const XML_Char **attrs) void StartElement(const XML_Char *name, const XML_Char **attrs) override
{ {
if (object.type != UPnPDirObject::Type::UNKNOWN && if (object.type != UPnPDirObject::Type::UNKNOWN &&
tag_type == TAG_NUM_OF_ITEM_TYPES) { tag_type == TAG_NUM_OF_ITEM_TYPES) {
...@@ -188,7 +188,7 @@ protected: ...@@ -188,7 +188,7 @@ protected:
} }
} }
virtual void EndElement(const XML_Char *name) void EndElement(const XML_Char *name) override
{ {
if (tag_type != TAG_NUM_OF_ITEM_TYPES) { if (tag_type != TAG_NUM_OF_ITEM_TYPES) {
assert(object.type != UPnPDirObject::Type::UNKNOWN); assert(object.type != UPnPDirObject::Type::UNKNOWN);
...@@ -212,7 +212,7 @@ protected: ...@@ -212,7 +212,7 @@ protected:
state = NONE; state = NONE;
} }
virtual void CharacterData(const XML_Char *s, int len) void CharacterData(const XML_Char *s, int len) override
{ {
if (tag_type != TAG_NUM_OF_ITEM_TYPES) { if (tag_type != TAG_NUM_OF_ITEM_TYPES) {
assert(object.type != UPnPDirObject::Type::UNKNOWN); assert(object.type != UPnPDirObject::Type::UNKNOWN);
......
...@@ -77,9 +77,9 @@ public: ...@@ -77,9 +77,9 @@ public:
static Database *Create(EventLoop &loop, DatabaseListener &listener, static Database *Create(EventLoop &loop, DatabaseListener &listener,
const ConfigBlock &block); const ConfigBlock &block);
virtual void Open() override; void Open() override;
virtual void Close() override; void Close() override;
virtual const LightSong *GetSong(const char *uri_utf8) const override; const LightSong *GetSong(const char *uri_utf8) const override;
void ReturnSong(const LightSong *song) const override; void ReturnSong(const LightSong *song) const override;
void Visit(const DatabaseSelection &selection, void Visit(const DatabaseSelection &selection,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment