From 8c8da1eadec3c48c63d34a4fb47e68a85278d5a0 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 15 Sep 2014 13:08:59 +0400 Subject: [PATCH] Make constant as a static --- src/XGUI/XGUI_MainMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_MainMenu.cpp b/src/XGUI/XGUI_MainMenu.cpp index 300219487..d874cc974 100644 --- a/src/XGUI/XGUI_MainMenu.cpp +++ b/src/XGUI/XGUI_MainMenu.cpp @@ -135,7 +135,7 @@ int XGUI_MainMenu::menuHeight() const int XGUI_MainMenu::menuItemRowsCount() const { - const int kDefaultRowsCount = 3; + static const int kDefaultRowsCount = 3; int aRowsCount = XGUI_Preferences::resourceMgr()->integerValue(XGUI_Preferences::MENU_SECTION, "rows_number", kDefaultRowsCount); return aRowsCount; -- 2.39.2