From 9ad4eeb4fa413b1a3e084d141c6eb01795f95b7f Mon Sep 17 00:00:00 2001 From: Andreas Becker Date: Thu, 28 Apr 2011 00:59:28 +0200 Subject: fixed cppcheck warnings --- accessibility/source/standard/vclxaccessibletoolbox.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accessibility') diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx index 71ae99652215..33c1d055e7ca 100644 --- a/accessibility/source/standard/vclxaccessibletoolbox.cxx +++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx @@ -391,7 +391,7 @@ void VCLXAccessibleToolBox::UpdateItem_Impl( sal_Int32 _nPos, sal_Bool _bItemAdd if ( pItem ) { sal_Int32 nIndex = pItem->getIndexInParent( ); - nIndex += _bItemAdded ? +1 : -1; + nIndex += (_bItemAdded ? +1 : -1); pItem->setIndexInParent( nIndex ); } } @@ -400,7 +400,7 @@ void VCLXAccessibleToolBox::UpdateItem_Impl( sal_Int32 _nPos, sal_Bool _bItemAdd if ( pWindowItem ) { sal_Int32 nIndex = pWindowItem->getIndexInParent( ); - nIndex += _bItemAdded ? +1 : -1; + nIndex += (_bItemAdded ? +1 : -1); pWindowItem->setIndexInParent( nIndex ); } } -- cgit