diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:54:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 18:39:11 +0200 |
commit | 1d4eb1be35cc393f98496883c2cb4ee89f4bcf0c (patch) | |
tree | 8b918663b9c37780d1fa42b8b1f35f363c7aa8d5 /test/source/sheet | |
parent | 50a6041bfac60ab03ec896bd638504524853300d (diff) |
loplugin:constvars in test..unotools
Change-Id: I087dc53ca5c18893974bbd9d959de56d5a4cdfa0
Reviewed-on: https://gerrit.libreoffice.org/77827
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test/source/sheet')
-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") { |