From b49fce18d0b05a8b5f462ba9bf6c84f0bb107d93 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 11 Jun 2021 15:44:56 +0200 Subject: Simplify vector initializations Change-Id: Icf8972be204799e9b3b3824ab18d8584911fe1c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117061 Tested-by: Jenkins Reviewed-by: Julien Nabet --- basegfx/test/basegfxtools.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'basegfx/test') diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx index a768357c13a5..9c6075919333 100644 --- a/basegfx/test/basegfxtools.cxx +++ b/basegfx/test/basegfxtools.cxx @@ -32,14 +32,7 @@ class KeyStopLerpTest : public CppUnit::TestFixture { utils::KeyStopLerp maKeyStops; - static std::vector getTestVector() - { - std::vector aStops(3); - aStops[0] = 0.1; - aStops[1] = 0.5; - aStops[2] = 0.9; - return aStops; - } + static std::vector getTestVector() { return { 0.1, 0.5, 0.9 }; } public: KeyStopLerpTest() -- cgit