toolkit/source/helper/vclunohelper.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 64f9a698dce9466991981069b70bacaf60f0b955 Author: Mike Kaganski <[email protected]> AuthorDate: Thu May 22 15:43:10 2025 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Thu May 22 22:03:18 2025 +0200 Simplify VCLUnoHelper::CreateBitmap Change-Id: I94a0427cb24d9e751ba21905e5abb378fba71843 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185677 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index fb39ae519edb..2fbb5fb51998 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -69,9 +69,7 @@ BitmapEx VCLUnoHelper::GetBitmap( const css::uno::Reference< css::awt::XBitmap>& css::uno::Reference< css::awt::XBitmap> VCLUnoHelper::CreateBitmap( const BitmapEx& rBitmap ) { - Graphic aGraphic( rBitmap ); - css::uno::Reference< css::awt::XBitmap> xBmp( aGraphic.GetXGraphic(), css::uno::UNO_QUERY ); - return xBmp; + return Graphic(rBitmap).GetXGraphic().query<css::awt::XBitmap>(); } vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWindow>& rxWindow )
