Commit 9f7fd1fb authored by Max Kellermann's avatar Max Kellermann

db/lazy, input/mms: add "override" keywords

Fixes -Winconsistent-missing-override (clang 3.6).
parent 940cab86
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
virtual const LightSong *GetSong(const char *uri_utf8, virtual const LightSong *GetSong(const char *uri_utf8,
Error &error) const override; Error &error) const override;
virtual void ReturnSong(const LightSong *song) const; void ReturnSong(const LightSong *song) const override;
virtual bool Visit(const DatabaseSelection &selection, virtual bool Visit(const DatabaseSelection &selection,
VisitDirectory visit_directory, VisitDirectory visit_directory,
......
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
virtual void Close() override; virtual void Close() override;
virtual const LightSong *GetSong(const char *uri_utf8, virtual const LightSong *GetSong(const char *uri_utf8,
Error &error) const override; Error &error) const override;
virtual void ReturnSong(const LightSong *song) const; void ReturnSong(const LightSong *song) const override;
virtual bool Visit(const DatabaseSelection &selection, virtual bool Visit(const DatabaseSelection &selection,
VisitDirectory visit_directory, VisitDirectory visit_directory,
...@@ -101,7 +101,9 @@ public: ...@@ -101,7 +101,9 @@ public:
virtual bool GetStats(const DatabaseSelection &selection, virtual bool GetStats(const DatabaseSelection &selection,
DatabaseStats &stats, DatabaseStats &stats,
Error &error) const override; Error &error) const override;
virtual time_t GetUpdateStamp() const {return 0;} time_t GetUpdateStamp() const override {
return 0;
}
protected: protected:
bool Configure(const config_param &param, Error &error); bool Configure(const config_param &param, Error &error);
......
...@@ -43,7 +43,7 @@ protected: ...@@ -43,7 +43,7 @@ protected:
virtual size_t ThreadRead(void *ptr, size_t size, virtual size_t ThreadRead(void *ptr, size_t size,
Error &error) override; Error &error) override;
virtual void Close() { void Close() override {
mmsx_close(mms); mmsx_close(mms);
} }
}; };
......
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