summaryrefslogtreecommitdiff
path: root/editeng/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 08:48:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 21:31:13 +0200
commitb33ff1a083d95388997cf301d8a1538a41c08255 (patch)
tree35c773fc0be7c6e4c4b479c9594fb1e8843ef183 /editeng/qa
parentfb149c68db909e6ec17520e277583ed759a0d49a (diff)
use for-range on Sequence in e*
Change-Id: I77dc12356ee45b1dee9acaf8a73dea81588822d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94554 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/qa')
-rw-r--r--editeng/qa/unit/core-test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx
index b5b133f047a6..a91565bce2a9 100644
--- a/editeng/qa/unit/core-test.cxx
+++ b/editeng/qa/unit/core-test.cxx
@@ -231,8 +231,8 @@ void Test::testConstruction()
bool includes(const uno::Sequence<OUString>& rSeq, const OUString& rVal)
{
- for (sal_Int32 i = 0, n = rSeq.getLength(); i < n; ++i)
- if (rSeq[i] == rVal)
+ for (OUString const & s : rSeq)
+ if (s == rVal)
return true;
return false;