summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-05-14 10:37:03 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-05-14 11:37:05 +0200
commit6b58816d17957536a2875cbbed0d270451ff25f7 (patch)
tree71e669241e992cb25d5b1d5263e87ad150e1b853 /chart2
parentTypos in comments (diff)
downloadcore-6b58816d17957536a2875cbbed0d270451ff25f7.tar.gz
core-6b58816d17957536a2875cbbed0d270451ff25f7.zip
Directly initialize vectors in common_functor_test.cxx
since we've got all the information from the beginning. Change-Id: I37098766967968f0db722c8998158d626792545e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115586 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/unit/common_functor_test.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/chart2/qa/unit/common_functor_test.cxx b/chart2/qa/unit/common_functor_test.cxx
index eaa5a29fc08a..b2e404e13508 100644
--- a/chart2/qa/unit/common_functor_test.cxx
+++ b/chart2/qa/unit/common_functor_test.cxx
@@ -61,14 +61,7 @@ void CommonFunctorsTest::testAnyToString()
void CommonFunctorsTest::testDoubleToString()
{
- std::vector<double> aInput;
- aInput.push_back(2.0);
- aInput.push_back(10.0);
- aInput.push_back(12.0);
- aInput.push_back(15.0);
- aInput.push_back(25.234);
- aInput.push_back(123.456);
- aInput.push_back(0.123450);
+ std::vector<double> aInput { 2.0, 10.0, 12.0, 15.0, 25.234, 123.456, 0.123450 };
std::vector<OUString> aOutput;
std::transform(aInput.begin(), aInput.end(),