StatusBar: GetWindow() returns const reference
authorMax Kellermann <max@musicpd.org>
Wed, 10 Apr 2019 08:28:13 +0000 (10:28 +0200)
committerMax Kellermann <max@musicpd.org>
Wed, 10 Apr 2019 08:28:13 +0000 (10:28 +0200)
src/StatusBar.hxx

index 1e8e5ed..dc9862f 100644 (file)
@@ -63,7 +63,7 @@ public:
                  Point p, unsigned width) noexcept;
        ~StatusBar() noexcept;
 
-       Window &GetWindow() noexcept {
+       const Window &GetWindow() const noexcept {
                return window;
        }