diff options
Diffstat (limited to 'test/source/sheet/xfunctiondescriptions.cxx')
-rw-r--r-- | test/source/sheet/xfunctiondescriptions.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/sheet/xfunctiondescriptions.cxx b/test/source/sheet/xfunctiondescriptions.cxx index 5c53b52971ac..d8cfd17d28f4 100644 --- a/test/source/sheet/xfunctiondescriptions.cxx +++ b/test/source/sheet/xfunctiondescriptions.cxx @@ -42,7 +42,7 @@ void XFunctionDescriptions::testGetById() OUString aName1; uno::Sequence<beans::PropertyValue> aProps1; CPPUNIT_ASSERT(xFD->getByIndex(nNumber) >>= aProps1); - for (const auto& aProp : aProps1) + for (const auto& aProp : std::as_const(aProps1)) { if (aProp.Name == "Id") aId1 = aProp.Value.get<sal_Int32>(); @@ -53,7 +53,7 @@ void XFunctionDescriptions::testGetById() // fetch the same descriptions by its id sal_Int32 aId2 = 0; OUString aName2; - uno::Sequence<beans::PropertyValue> aProps2 = xFD->getById(aId1); + const uno::Sequence<beans::PropertyValue> aProps2 = xFD->getById(aId1); CPPUNIT_ASSERT_MESSAGE("Received empty FunctionDescriptions from getById()", aProps2.hasElements()); for (const auto& aProp : aProps2) |