]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make constant as a static
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 15 Sep 2014 09:08:59 +0000 (13:08 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 15 Sep 2014 09:08:59 +0000 (13:08 +0400)
src/XGUI/XGUI_MainMenu.cpp

index 3002194871042bc4dd8fe5457e81b89c1d4d0940..d874cc974d48745772d71c12124baf12a7cdd1b4 100644 (file)
@@ -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;