[Libreoffice-commits] core.git: chart2/qa
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 14 09:38:30 UTC 2021
chart2/qa/unit/common_functor_test.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 6b58816d17957536a2875cbbed0d270451ff25f7
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri May 14 10:37:03 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri May 14 11:37:05 2021 +0200
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 at yahoo.fr>
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(),
More information about the Libreoffice-commits
mailing list