From 7d80b1685482ab8d39d30881ce5f26a1f1947de1 Mon Sep 17 00:00:00 2001 From: Gabriel Rauter Date: Fri, 26 Feb 2016 15:37:41 +0100 Subject: [PATCH] fix missing overrides as shown by warnings mentioned in issue #955 --- src/app/file/webp_format.cpp | 6 +++--- src/she/clipboard_simple.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/file/webp_format.cpp b/src/app/file/webp_format.cpp index d52a88998..6e0319085 100644 --- a/src/app/file/webp_format.cpp +++ b/src/app/file/webp_format.cpp @@ -40,9 +40,9 @@ using namespace base; class WebPFormat : public FileFormat { - const char* onGetName() const { return "webp"; } - const char* onGetExtensions() const { return "webp"; } - int onGetFlags() const { + const char* onGetName() const override { return "webp"; } + const char* onGetExtensions() const override { return "webp"; } + int onGetFlags() const override { return FILE_SUPPORT_LOAD | FILE_SUPPORT_SAVE | diff --git a/src/she/clipboard_simple.h b/src/she/clipboard_simple.h index 226606d9a..5e7fb9c85 100644 --- a/src/she/clipboard_simple.h +++ b/src/she/clipboard_simple.h @@ -25,7 +25,7 @@ namespace she { return m_text; } - void setText(DisplayHandle, const std::string& text) { + void setText(DisplayHandle, const std::string& text) override { m_text = text; }