summaryrefslogtreecommitdiff
path: root/scripting/source/dlgprov
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/dlgprov')
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 4ff9d68d219f..4f0c8babe547 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -333,11 +333,9 @@ namespace dlgprov
else
{
Sequence< OUString > aOpenDocsTdocURLs( MiscUtils::allOpenTDocUrls( m_xContext ) );
- const OUString* pTdocURL = aOpenDocsTdocURLs.getConstArray();
- const OUString* pTdocURLEnd = aOpenDocsTdocURLs.getConstArray() + aOpenDocsTdocURLs.getLength();
- for ( ; pTdocURL != pTdocURLEnd; ++pTdocURL )
+ for ( auto const & tdocURL : aOpenDocsTdocURLs )
{
- Reference< frame::XModel > xModel( MiscUtils::tDocUrlToModel( *pTdocURL ) );
+ Reference< frame::XModel > xModel( MiscUtils::tDocUrlToModel( tdocURL ) );
OSL_ENSURE( xModel.is(), "DialogProviderImpl::createDialogModel: invalid document model!" );
if ( !xModel.is() )
continue;