summaryrefslogtreecommitdiff
path: root/test/source/sheet/xdatabaserange.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-06-30 20:50:45 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-07-01 07:18:16 +0200
commit706798376f42771f9c644852eeaeed5540f421ef (patch)
tree81e4b1e9278694018a3b42f732411fe304427756 /test/source/sheet/xdatabaserange.cxx
parentbfc19d77cb8db445f1c6123347c19a4c0c6a6cf8 (diff)
Simplify Sequence iterations in test
Use range-based loops or replace with STL functions Change-Id: I93efa86f49eb49dbdd3b7572dbd538bc300ded05 Reviewed-on: https://gerrit.libreoffice.org/74932 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'test/source/sheet/xdatabaserange.cxx')
-rw-r--r--test/source/sheet/xdatabaserange.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx
index 36ce1d5362fb..756d204ff597 100644
--- a/test/source/sheet/xdatabaserange.cxx
+++ b/test/source/sheet/xdatabaserange.cxx
@@ -65,9 +65,8 @@ void XDatabaseRange::testGetSortDescriptor()
{
uno::Reference< sheet::XDatabaseRange > xDBRange(init("SortDescriptor"), UNO_QUERY_THROW);
uno::Sequence< beans::PropertyValue > xSortDescr = xDBRange->getSortDescriptor();
- for (sal_Int32 i = 0; i < xSortDescr.getLength(); ++i)
+ for (const beans::PropertyValue& aProp : xSortDescr)
{
- beans::PropertyValue aProp = xSortDescr[i];
//std::cout << "Prop " << i << " Name: " << OUString(aProp.Name) << std::endl;
if (aProp.Name == "IsSortColumns")