diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 15:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-16 08:11:27 +0200 |
commit | a0073744aac89648e89506b79e227b17dacf58d0 (patch) | |
tree | d40b1c631884a0ce4428be716f550b12921ab21e /unotools/source/misc | |
parent | 61e02561aa659d829a6786609fc57d99fd8652b4 (diff) |
loplugin:sequenceloop in ucb..unotools
Change-Id: Ie52d993c185ba43386b494baad0a484d5b365499
Reviewed-on: https://gerrit.libreoffice.org/77532
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/misc')
-rw-r--r-- | unotools/source/misc/ServiceDocumenter.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unotools/source/misc/ServiceDocumenter.cxx b/unotools/source/misc/ServiceDocumenter.cxx index b29848e5b25e..0823d2a6651e 100644 --- a/unotools/source/misc/ServiceDocumenter.cxx +++ b/unotools/source/misc/ServiceDocumenter.cxx @@ -33,7 +33,8 @@ void unotools::misc::ServiceDocumenter::showInterfaceDocs(const Reference<XTypeP return; auto xMSF(m_xContext->getServiceManager()); Reference<system::XSystemShellExecute> xShell(xMSF->createInstanceWithContext("com.sun.star.system.SystemShellExecute", m_xContext), uno::UNO_QUERY); - for(const auto& aType : xTypeProvider->getTypes()) + const css::uno::Sequence<css::uno::Type> aTypes = xTypeProvider->getTypes(); + for(const auto& aType : aTypes) { auto sUrl = aType.getTypeName(); sal_Int32 nIdx = 0; @@ -51,7 +52,8 @@ void unotools::misc::ServiceDocumenter::showServiceDocs(const Reference<XService return; auto xMSF(m_xContext->getServiceManager()); Reference<system::XSystemShellExecute> xShell(xMSF->createInstanceWithContext("com.sun.star.system.SystemShellExecute", m_xContext), uno::UNO_QUERY); - for(const auto& sService : xService->getSupportedServiceNames()) + const css::uno::Sequence<OUString> aServiceNames = xService->getSupportedServiceNames(); + for(const auto& sService : aServiceNames) { auto sUrl = sService; sal_Int32 nIdx = 0; |