From 43a9bf11203ed92096af34ab828501e0218832c7 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 16 Oct 2021 22:46:30 +0200 Subject: Simplify vector initialization in vcl Change-Id: I881627313221081f72f8421c91417e4c111cfd97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123708 Tested-by: Jenkins Reviewed-by: Julien Nabet --- vcl/source/control/throbber.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'vcl/source/control/throbber.cxx') diff --git a/vcl/source/control/throbber.cxx b/vcl/source/control/throbber.cxx index e1faeb7c7af1..d7dc3e4a763d 100644 --- a/vcl/source/control/throbber.cxx +++ b/vcl/source/control/throbber.cxx @@ -99,10 +99,12 @@ void Throbber::initImages() { try { - ::std::vector< ::std::vector< Image > > aImageSets; - aImageSets.push_back( lcl_loadImageSet( ImageSet::N16px ) ); - aImageSets.push_back( lcl_loadImageSet( ImageSet::N32px ) ); - aImageSets.push_back( lcl_loadImageSet( ImageSet::N64px ) ); + ::std::vector< ::std::vector< Image > > aImageSets + { + lcl_loadImageSet( ImageSet::N16px ), + lcl_loadImageSet( ImageSet::N32px ), + lcl_loadImageSet( ImageSet::N64px ) + }; // find the best matching image set (size-wise) const ::Size aWindowSizePixel = GetSizePixel(); -- cgit