fix missing overrides as shown by warnings mentioned in issue #955

This commit is contained in:
Gabriel Rauter 2016-02-26 15:37:41 +01:00
parent c1a2cbebde
commit 7d80b16854
2 changed files with 4 additions and 4 deletions

View File

@ -40,9 +40,9 @@ using namespace base;
class WebPFormat : public FileFormat { class WebPFormat : public FileFormat {
const char* onGetName() const { return "webp"; } const char* onGetName() const override { return "webp"; }
const char* onGetExtensions() const { return "webp"; } const char* onGetExtensions() const override { return "webp"; }
int onGetFlags() const { int onGetFlags() const override {
return return
FILE_SUPPORT_LOAD | FILE_SUPPORT_LOAD |
FILE_SUPPORT_SAVE | FILE_SUPPORT_SAVE |

View File

@ -25,7 +25,7 @@ namespace she {
return m_text; return m_text;
} }
void setText(DisplayHandle, const std::string& text) { void setText(DisplayHandle, const std::string& text) override {
m_text = text; m_text = text;
} }