summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-07-18 11:11:48 +0000
committerArmin Le Grand <alg@apache.org>2012-07-18 11:11:48 +0000
commit0132f35e8be61d34156ef907adb7eb98902509da (patch)
treeadf85281f6cf25827e7d27493522555118a3bcfb /vcl/unx
parentba86cf07673ed3dde1b4d54242005a4a903d86c9 (diff)
basic, cui, extensions, filter, vcl: fix some warnings
Patch by: Michael Stahl
Notes
Notes: prefer: 6a94d7b5c924e3a8ef3ff0f68f54061c035a3cb0
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.cxx2
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index 03e9f2a5e379..e44193c2bdbc 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -313,7 +313,7 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
initialized = true;
}
- static const sal_Int32 nMapSize = sizeof(roleMap)/sizeof(sal_Int16);
+ static const sal_Int32 nMapSize = sizeof(roleMap)/sizeof(roleMap[0]);
if( 0 <= nRole && nMapSize > nRole )
role = roleMap[nRole];
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index abbfc996bc76..8f17f1f8d10e 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -364,7 +364,7 @@ GdkCursor* GtkSalDisplay::getFromXPM( const char *pBitmap,
GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )
{
- if( ePointerStyle > POINTER_COUNT )
+ if (ePointerStyle >= POINTER_COUNT)
return NULL;
if ( !m_aCursors[ ePointerStyle ] )