summaryrefslogtreecommitdiff
path: root/forms/source/misc/InterfaceContainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/misc/InterfaceContainer.cxx')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 3d5ffd73083b..402e433363b7 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -718,7 +718,7 @@ sal_Int32 OInterfaceContainer::getCount()
Any OInterfaceContainer::getByIndex(sal_Int32 _nIndex)
{
- if (_nIndex < 0 || (_nIndex >= (sal_Int32)m_aItems.size()))
+ if (_nIndex < 0 || (_nIndex >= static_cast<sal_Int32>(m_aItems.size())))
throw IndexOutOfBoundsException();
return m_aItems[_nIndex]->queryInterface( m_aElementType );
@@ -791,7 +791,7 @@ void OInterfaceContainer::implInsert(sal_Int32 _nIndex, const Reference< XProper
_rxElement->addPropertyChangeListener(PROPERTY_NAME, this);
// insert the object into our internal structures
- if (_nIndex > (sal_Int32)m_aItems.size()) // Calculate the actual index
+ if (_nIndex > static_cast<sal_Int32>(m_aItems.size())) // Calculate the actual index
{
_nIndex = m_aItems.size();
m_aItems.push_back( pElementMetaData->xInterface );
@@ -912,7 +912,7 @@ void SAL_CALL OInterfaceContainer::insertByIndex( sal_Int32 _nIndex, const Any&
void OInterfaceContainer::implReplaceByIndex( const sal_Int32 _nIndex, const Any& _rNewElement, ::osl::ClearableMutexGuard& _rClearBeforeNotify )
{
- OSL_PRECOND( ( _nIndex >= 0 ) && ( _nIndex < (sal_Int32)m_aItems.size() ), "OInterfaceContainer::implReplaceByIndex: precondition not met (index)!" );
+ OSL_PRECOND( ( _nIndex >= 0 ) && ( _nIndex < static_cast<sal_Int32>(m_aItems.size()) ), "OInterfaceContainer::implReplaceByIndex: precondition not met (index)!" );
// approve the new object
std::unique_ptr< ElementDescription > aElementMetaData( createElementMetaData() );
@@ -985,7 +985,7 @@ void OInterfaceContainer::implReplaceByIndex( const sal_Int32 _nIndex, const Any
void OInterfaceContainer::implCheckIndex( const sal_Int32 _nIndex )
{
- if (_nIndex < 0 || _nIndex >= (sal_Int32)m_aItems.size())
+ if (_nIndex < 0 || _nIndex >= static_cast<sal_Int32>(m_aItems.size()))
throw IndexOutOfBoundsException();
}
@@ -1002,7 +1002,7 @@ void SAL_CALL OInterfaceContainer::replaceByIndex(sal_Int32 _nIndex, const Any&
void OInterfaceContainer::implRemoveByIndex( const sal_Int32 _nIndex, ::osl::ClearableMutexGuard& _rClearBeforeNotify )
{
- OSL_PRECOND( ( _nIndex >= 0 ) && ( _nIndex < (sal_Int32)m_aItems.size() ), "OInterfaceContainer::implRemoveByIndex: precondition not met (index)!" );
+ OSL_PRECOND( ( _nIndex >= 0 ) && ( _nIndex < static_cast<sal_Int32>(m_aItems.size()) ), "OInterfaceContainer::implRemoveByIndex: precondition not met (index)!" );
OInterfaceArray::iterator i = m_aItems.begin() + _nIndex;
css::uno::Reference<css::uno::XInterface> xElement(*i);