db/upnp: use "override" instead of "virtual"
This commit is contained in:
@@ -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:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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:
|
|||||||
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:
|
|||||||
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,
|
||||||
|
Reference in New Issue
Block a user