diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 15:10:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 19:28:03 +0200 |
commit | 9c10e29287740f473fa4f33ac6188b8c8543bfbb (patch) | |
tree | c46ec88b5fe6156ac8a3dc27632b71a4a691938b /chart2/source/tools | |
parent | 16da5e2cc9add87aa44783af270f63de01e7ced4 (diff) |
loplugin:constvars in chart2..connectivity
Change-Id: I35d450b022af870df4e57714363892554a4ae917
Reviewed-on: https://gerrit.libreoffice.org/77722
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r-- | chart2/source/tools/InternalDataProvider.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index acce76d5ea19..0fa8a4bff815 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -569,7 +569,7 @@ InternalDataProvider::createDataSequenceFromArray( const OUString& rArrayStr, co std::vector<double> aValues; aValues.reserve(aRawElems.size()); - for (OUString & aRawElem : aRawElems) + for (const OUString & aRawElem : aRawElems) { if (aRawElem.isEmpty()) aValues.push_back(NAN); @@ -590,7 +590,7 @@ InternalDataProvider::createDataSequenceFromArray( const OUString& rArrayStr, co aValues.reserve(aRawElems.size()); if (bAllNumeric) { - for (OUString & aRawElem : aRawElems) + for (const OUString & aRawElem : aRawElems) aValues.push_back(aRawElem.toDouble()); } else |