diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-30 20:50:45 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-01 07:18:16 +0200 |
commit | 706798376f42771f9c644852eeaeed5540f421ef (patch) | |
tree | 81e4b1e9278694018a3b42f732411fe304427756 /test/source/sheet/xsubtotalfield.cxx | |
parent | bfc19d77cb8db445f1c6123347c19a4c0c6a6cf8 (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/xsubtotalfield.cxx')
-rw-r--r-- | test/source/sheet/xsubtotalfield.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/sheet/xsubtotalfield.cxx b/test/source/sheet/xsubtotalfield.cxx index 41824a1d0f64..dfd48f849e6e 100644 --- a/test/source/sheet/xsubtotalfield.cxx +++ b/test/source/sheet/xsubtotalfield.cxx @@ -35,8 +35,8 @@ template<> struct assertion_traits<uno::Sequence< sheet::SubTotalColumn > > { OStringStream ost; ost << "Sequence: Length: " << x.getLength() << "\n"; - for (auto element = x.begin(); element != x.end(); ++element) - ost << "Column: " << element->Column << " Function:\n"; + for (const auto& rElement : x) + ost << "Column: " << rElement.Column << " Function:\n"; // FIXME: Find a way to print Function //ost << "Column: " << element->Column << " Function: " << element->Function << "\n"; return ost.str(); |