summaryrefslogtreecommitdiff
path: root/framework/source/fwi/uielement/itemcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/fwi/uielement/itemcontainer.cxx')
-rw-r--r--framework/source/fwi/uielement/itemcontainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/fwi/uielement/itemcontainer.cxx b/framework/source/fwi/uielement/itemcontainer.cxx
index ba9e78128619..50f8b5a8bd25 100644
--- a/framework/source/fwi/uielement/itemcontainer.cxx
+++ b/framework/source/fwi/uielement/itemcontainer.cxx
@@ -196,7 +196,7 @@ void SAL_CALL ItemContainer::insertByIndex( sal_Int32 Index, const Any& aItem )
void SAL_CALL ItemContainer::removeByIndex( sal_Int32 nIndex )
{
ShareGuard aLock( m_aShareMutex );
- if ( (sal_Int32)m_aItemVector.size() <= nIndex )
+ if ( static_cast<sal_Int32>(m_aItemVector.size()) <= nIndex )
throw IndexOutOfBoundsException( OUString(), static_cast<OWeakObject *>(this) );
m_aItemVector.erase(m_aItemVector.begin() + nIndex);