From 6b58816d17957536a2875cbbed0d270451ff25f7 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 14 May 2021 10:37:03 +0200 Subject: 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 --- chart2/qa/unit/common_functor_test.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'chart2') 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 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 aInput { 2.0, 10.0, 12.0, 15.0, 25.234, 123.456, 0.123450 }; std::vector aOutput; std::transform(aInput.begin(), aInput.end(), -- cgit