From 1d4eb1be35cc393f98496883c2cb4ee89f4bcf0c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Aug 2019 15:54:16 +0200 Subject: loplugin:constvars in test..unotools Change-Id: I087dc53ca5c18893974bbd9d959de56d5a4cdfa0 Reviewed-on: https://gerrit.libreoffice.org/77827 Tested-by: Jenkins Reviewed-by: Noel Grandin --- test/source/sheet/functiondescription.cxx | 4 ++-- test/source/sheet/sheetsortdescriptor2.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/source') 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 aFunctionDescription(init()); + const uno::Sequence aFunctionDescription(init()); std::vector 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 xSortable(init(), UNO_QUERY_THROW); - uno::Sequence values = xSortable->createSortDescriptor(); + const uno::Sequence values = xSortable->createSortDescriptor(); std::vector 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") { -- cgit