summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-08-03 22:59:04 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-08-09 16:58:06 +0200
commitfca94779872b8ba0b0583d0b7068f1a46beb88c5 (patch)
treec3dd200a046d3c6e54cba570f7661b9c1068ed1b /sc/qa
parentd05eb786d408af883500404229b89ffa0d7cde16 (diff)
Simplify Sequence iterations in sc
Use range-based loops, STL and comphelper functions Change-Id: I047fb2e6ec9591166339b9748c5013a32185f14b Reviewed-on: https://gerrit.libreoffice.org/76912 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/helper/qahelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index c5f183161a78..219d47635feb 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -11,6 +11,7 @@
#include "csv_handler.hxx"
#include "debughelper.hxx"
#include <drwlayer.hxx>
+#include <comphelper/sequence.hxx>
#include <compiler.hxx>
#include <conditio.hxx>
#include <stlsheet.hxx>
@@ -375,8 +376,7 @@ std::vector<OUString> getChartRangeRepresentations(const SdrOle2Obj& rChartObj)
}
Sequence<OUString> aRangeRepSeqs = xDataRec->getUsedRangeRepresentations();
- for (sal_Int32 i = 0, n = aRangeRepSeqs.getLength(); i < n; ++i)
- aRangeReps.push_back(aRangeRepSeqs[i]);
+ comphelper::sequenceToContainer(aRangeReps, aRangeRepSeqs);
return aRangeReps;
}