From dd6ea56c028079ce80ff9fc2db43ffd35e4d8489 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 11 Nov 2016 10:31:01 +0100 Subject: [PATCH] loplugin:vclwidgets Change-Id: Iead7373a76b086dbd96d1d9d4643247762d0522f --- canvas/source/directx/dx_spritecanvas.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas/source/directx/dx_spritecanvas.cxx b/canvas/source/directx/dx_spritecanvas.cxx index 99ba39ceadfb..291c19f704cc 100644 --- a/canvas/source/directx/dx_spritecanvas.cxx +++ b/canvas/source/directx/dx_spritecanvas.cxx @@ -82,7 +82,7 @@ namespace dxcanvas uno::Reference< awt::XWindow > xParentWindow; maArguments[4] >>= xParentWindow; - vcl::Window* pParentWindow = VCLUnoHelper::GetWindow(xParentWindow); + auto pParentWindow = VCLUnoHelper::GetWindow(xParentWindow); if( !pParentWindow ) throw lang::NoSupportException( "Parent window not VCL window, or canvas out-of-process!" );