chart2/qa/unit/common_functor_test.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit 6b58816d17957536a2875cbbed0d270451ff25f7
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri May 14 10:37:03 2021 +0200
Commit:     Julien Nabet <serval2...@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 <serval2...@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(),
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to