diff options
Diffstat (limited to 'idlc/source/astoperation.cxx')
-rw-r--r-- | idlc/source/astoperation.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/idlc/source/astoperation.cxx b/idlc/source/astoperation.cxx index 122b4a57992f..4dea37576b24 100644 --- a/idlc/source/astoperation.cxx +++ b/idlc/source/astoperation.cxx @@ -101,16 +101,13 @@ void AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index) if ( nExcep ) { - DeclList::iterator iter = m_exceptions.begin(); - DeclList::iterator end = m_exceptions.end(); sal_uInt16 exceptIndex = 0; - while ( iter != end ) + for (auto const& exception : m_exceptions) { rBlob.setMethodExceptionTypeName( index, exceptIndex++, OStringToOUString( - (*iter)->getRelativName(), RTL_TEXTENCODING_UTF8)); - ++iter; + exception->getRelativName(), RTL_TEXTENCODING_UTF8)); } } } |