You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pa...@apache.org on 2013/05/13 17:50:20 UTC

svn commit: r1481943 - /openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx

Author: paveljanik
Date: Mon May 13 15:50:20 2013
New Revision: 1481943

URL: http://svn.apache.org/r1481943
Log:
Retype values properly to prevent compiler warnings.

Modified:
    openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx

Modified: openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx?rev=1481943&r1=1481942&r2=1481943&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/FocusManager.cxx Mon May 13 15:50:20 2013
@@ -282,7 +282,7 @@ bool FocusManager::IsDeckTitleVisible (v
 
 void FocusManager::FocusPanel (const sal_Int32 nPanelIndex)
 {
-    if (nPanelIndex<0 || nPanelIndex>=maPanels.size())
+    if (nPanelIndex<0 || nPanelIndex>=static_cast<sal_Int32>(maPanels.size()))
         return;
     Panel& rPanel (*maPanels[nPanelIndex]);
     TitleBar* pTitleBar = rPanel.GetTitleBar();
@@ -496,7 +496,7 @@ void FocusManager::HandleKeyEvent (
                 case PC_PanelToolBox:
                 case PC_PanelContent:
                     // Go to next panel.
-                    if (aLocation.mnIndex < maPanels.size()-1)
+                    if (aLocation.mnIndex < static_cast<sal_Int32>(maPanels.size())-1)
                         FocusPanel(aLocation.mnIndex+1);
                     else
                         FocusButton(0);
@@ -510,7 +510,7 @@ void FocusManager::HandleKeyEvent (
 
                 case PC_TabBar:
                     // Go to next tab bar item.
-                    if (aLocation.mnIndex < maButtons.size()-1)
+                    if (aLocation.mnIndex < static_cast<sal_Int32>(maButtons.size())-1)
                         FocusButton(aLocation.mnIndex + 1);
                     else if (IsDeckTitleVisible())
                         FocusDeckTitle();