diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/functiondescription.cxx | 4 | ||||
-rw-r--r-- | test/source/sheet/sheetsortdescriptor2.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/source/sheet/functiondescription.cxx b/test/source/sheet/functiondescription.cxx index e629331175ae..5b7aeb5ca99a 100644 --- a/test/source/sheet/functiondescription.cxx +++ b/test/source/sheet/functiondescription.cxx @@ -24,13 +24,13 @@ namespace apitest { void FunctionDescription::testFunctionDescriptionProperties() { - uno::Sequence<beans::PropertyValue> aFunctionDescription(init()); + const uno::Sequence<beans::PropertyValue> aFunctionDescription(init()); std::vector<OUString> names; // Only test the get/read operation of the values, because set/write operation doesn't // make any sense. It doesn't trigger any changes. // See discussion: nabble.documentfoundation.org/Testing-UNO-API-service-properties-td4236286.html. - for (auto& value : aFunctionDescription) + for (const auto& value : aFunctionDescription) { if (value.Name == "Id") { diff --git a/test/source/sheet/sheetsortdescriptor2.cxx b/test/source/sheet/sheetsortdescriptor2.cxx index 9f7133f8809a..85ca8706cd4c 100644 --- a/test/source/sheet/sheetsortdescriptor2.cxx +++ b/test/source/sheet/sheetsortdescriptor2.cxx @@ -27,13 +27,13 @@ namespace apitest void SheetSortDescriptor2::testSheetSortDescriptor2Properties() { uno::Reference<util::XSortable> xSortable(init(), UNO_QUERY_THROW); - uno::Sequence<beans::PropertyValue> values = xSortable->createSortDescriptor(); + const uno::Sequence<beans::PropertyValue> values = xSortable->createSortDescriptor(); std::vector<OUString> names; // Only test the get/read operation of the values, because set/write operation doesn't // make any sense. It doesn't trigger any changes. // See discussion: nabble.documentfoundation.org/Testing-UNO-API-service-properties-td4236286.html. - for (auto& value : values) + for (const auto& value : values) { if (value.Name == "BindFormatsToContent") { |