From 6e8c48dc593d8b6e5cebd15a980074715223b572 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 9 Mar 2017 13:34:54 +0100 Subject: Add const to methods that do not modify the object for which it is called --- src/qt/modaloverlay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qt/modaloverlay.h') diff --git a/src/qt/modaloverlay.h b/src/qt/modaloverlay.h index 21ccdbd839..cda23f9540 100644 --- a/src/qt/modaloverlay.h +++ b/src/qt/modaloverlay.h @@ -32,7 +32,7 @@ public Q_SLOTS: // will show or hide the modal layer void showHide(bool hide = false, bool userRequested = false); void closeClicked(); - bool isLayerVisible() { return layerIsVisible; } + bool isLayerVisible() const { return layerIsVisible; } protected: bool eventFilter(QObject * obj, QEvent * ev); -- cgit v1.2.3