From ac6fe36ac6ccebf3bf891b891bd47c8e3744a056 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 26 Nov 2018 16:59:42 +0000 Subject: Use lazy-loading stock Image to simplify framework image lists. Project stock names through XGraphic via origin URL. (cherry picked from commit 77b88eebaadebb626108172e4f2de36c60960051) Change-Id: Ib445694f7c142a163ef7e7bc0beea39b88b99e14 Reviewed-on: https://gerrit.libreoffice.org/79420 Tested-by: Jenkins Reviewed-by: Michael Meeks --- vcl/source/helper/commandinfoprovider.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'vcl/source/helper/commandinfoprovider.cxx') diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx index f14ee9dd0efb..d6fdc61715e8 100644 --- a/vcl/source/helper/commandinfoprovider.cxx +++ b/vcl/source/helper/commandinfoprovider.cxx @@ -350,20 +350,11 @@ Reference GetXGraphicForCommand(const OUString& rsCommandName return nullptr; } -static BitmapEx GetBitmapForCommand(const OUString& rsCommandName, - const Reference& rxFrame, - vcl::ImageType eImageType) -{ - const Graphic aGraphic(GetXGraphicForCommand(rsCommandName, rxFrame, eImageType)); - BitmapEx aBitmap(aGraphic.GetBitmapEx()); - return aBitmap; -} - Image GetImageForCommand(const OUString& rsCommandName, const Reference& rxFrame, vcl::ImageType eImageType) { - return Image(GetBitmapForCommand(rsCommandName, rxFrame, eImageType)); + return Image(GetXGraphicForCommand(rsCommandName, rxFrame, eImageType)); } sal_Int32 GetPropertiesForCommand ( -- cgit