From 01bc1eae3fb24649d903674a7178afebba478427 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 12 Aug 2018 18:00:00 -0700 Subject: [PATCH] Some clang compiler warning cleanup. --- src/musikcube/app/layout/BrowseLayout.h | 8 ++++---- src/musikcube/app/layout/LibraryLayout.h | 18 +++++++++--------- src/musikcube/cursespp/ListOverlay.h | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/musikcube/app/layout/BrowseLayout.h b/src/musikcube/app/layout/BrowseLayout.h index 59604188e..f34222fbb 100755 --- a/src/musikcube/app/layout/BrowseLayout.h +++ b/src/musikcube/app/layout/BrowseLayout.h @@ -62,9 +62,9 @@ namespace musik { virtual ~BrowseLayout(); - virtual void OnVisibilityChanged(bool visible); - virtual bool KeyPress(const std::string& key); - virtual void ProcessMessage(musik::core::runtime::IMessage &message); + virtual void OnVisibilityChanged(bool visible) override; + virtual bool KeyPress(const std::string& key) override; + virtual void ProcessMessage(musik::core::runtime::IMessage &message) override; void ScrollTo(const std::string& fieldType, int64_t fieldId); void SwitchCategory(const std::string& fieldName); @@ -72,7 +72,7 @@ namespace musik { void LoadLastSession(); protected: - virtual void OnLayout(); + virtual void OnLayout() override; private: void InitializeWindows(); diff --git a/src/musikcube/app/layout/LibraryLayout.h b/src/musikcube/app/layout/LibraryLayout.h index 87e2e59af..a62b04ed0 100755 --- a/src/musikcube/app/layout/LibraryLayout.h +++ b/src/musikcube/app/layout/LibraryLayout.h @@ -65,21 +65,21 @@ namespace musik { virtual ~LibraryLayout(); - virtual cursespp::IWindowPtr FocusNext(); - virtual cursespp::IWindowPtr FocusPrev(); - virtual cursespp::IWindowPtr GetFocus(); - virtual bool SetFocus(cursespp::IWindowPtr window); - virtual void ProcessMessage(musik::core::runtime::IMessage &message); + virtual cursespp::IWindowPtr FocusNext() override; + virtual cursespp::IWindowPtr FocusPrev() override; + virtual cursespp::IWindowPtr GetFocus() override; + virtual bool SetFocus(cursespp::IWindowPtr window) override; + virtual void ProcessMessage(musik::core::runtime::IMessage &message) override; virtual void SetShortcutsWindow( - cursespp::ShortcutsWindow* w); + cursespp::ShortcutsWindow* w) override; - virtual bool KeyPress(const std::string& key); + virtual bool KeyPress(const std::string& key) override; protected: virtual void OnLayout(); - virtual void OnAddedToParent(IWindow* newParent); - virtual void OnRemovedFromParent(IWindow* oldParent); + virtual void OnAddedToParent(IWindow* newParent) override; + virtual void OnRemovedFromParent(IWindow* oldParent) override; private: void LoadLastSession(); diff --git a/src/musikcube/cursespp/ListOverlay.h b/src/musikcube/cursespp/ListOverlay.h index f4a4967b9..eb91e05c8 100644 --- a/src/musikcube/cursespp/ListOverlay.h +++ b/src/musikcube/cursespp/ListOverlay.h @@ -70,8 +70,8 @@ namespace cursespp { size_t GetSelectedIndex(); - virtual void Layout(); - virtual bool KeyPress(const std::string& key); + virtual void Layout() override; + virtual bool KeyPress(const std::string& key) override; void RefreshAdapter();