From: vsv Date: Mon, 15 Sep 2014 09:08:59 +0000 (+0400) Subject: Make constant as a static X-Git-Tag: V_0.4.4~51^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c8da1eadec3c48c63d34a4fb47e68a85278d5a0;p=modules%2Fshaper.git Make constant as a static --- 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;