diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 09:18:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 13:18:38 +0200 |
commit | 454eb3bc05f861712bff0f7593f9aa9809e4ee7c (patch) | |
tree | ea5ca6dbd4efe716bcdcb9ae196849053235c8af /configmgr/qa | |
parent | bc8cefd025d89e7f981f07814a16030f92413a8b (diff) |
use for-range on Sequence in cli_ure..connectivity
Change-Id: Ic5254e402d153a13c29928b59738cbe1603d0139
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94399
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr/qa')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index e553c1947f66..daa2070086f7 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -316,15 +316,15 @@ void Test::testReadCommands() "/org.openoffice.Office.UI.GenericCommands/UserInterface/" "Commands"), css::uno::UNO_QUERY_THROW); - css::uno::Sequence< OUString > names(access->getElementNames()); + const css::uno::Sequence< OUString > names(access->getElementNames()); /*CPPUNIT_ASSERT_EQUAL(749, names.getLength());*/ // testSetSetMemberName() already removed ".uno:FontworkGalleryFloater" sal_uInt32 n = osl_getGlobalTimer(); for (int i = 0; i < 8; ++i) { - for (sal_Int32 j = 0; j < names.getLength(); ++j) { + for (OUString const & childName : names) { css::uno::Reference< css::container::XNameAccess > child; - if (access->getByName(names[j]) >>= child) { + if (access->getByName(childName) >>= child) { CPPUNIT_ASSERT(child.is()); child->getByName("Label"); child->getByName("ContextLabel"); |