summaryrefslogtreecommitdiff
path: root/cppuhelper/source/tdmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/tdmgr.cxx')
-rw-r--r--cppuhelper/source/tdmgr.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx
index e11b6d6077f3..1e5826e248c7 100644
--- a/cppuhelper/source/tdmgr.cxx
+++ b/cppuhelper/source/tdmgr.cxx
@@ -204,20 +204,20 @@ static typelib_TypeDescription * createCTD(
Reference< XTypeDescription > xType( xAttribute->getType() );
OUString aMemberTypeName( xType->getName() );
std::vector< rtl_uString * > getExc;
- Sequence< Reference< XCompoundTypeDescription > > getExcs(
+ const Sequence< Reference< XCompoundTypeDescription > > getExcs(
xAttribute->getGetExceptions() );
- for (sal_Int32 i = 0; i != getExcs.getLength(); ++i)
+ for (const auto & ctd : getExcs)
{
- OSL_ASSERT( getExcs[i].is() );
- getExc.push_back( getExcs[i]->getName().pData );
+ OSL_ASSERT( ctd.is() );
+ getExc.push_back( ctd->getName().pData );
}
std::vector< rtl_uString * > setExc;
- Sequence< Reference< XCompoundTypeDescription > > setExcs(
+ const Sequence< Reference< XCompoundTypeDescription > > setExcs(
xAttribute->getSetExceptions() );
- for (sal_Int32 i = 0; i != setExcs.getLength(); ++i)
+ for (const auto & ctd : setExcs)
{
- OSL_ASSERT( setExcs[i].is() );
- setExc.push_back( setExcs[i]->getName().pData );
+ OSL_ASSERT( ctd.is() );
+ setExc.push_back( ctd->getName().pData );
}
typelib_typedescription_newExtendedInterfaceAttribute(
reinterpret_cast<typelib_InterfaceAttributeTypeDescription **>(&pRet),