toolkit: Drop unnecessary XWindow2 param specialization
XWindow2 subclasses XWindow, so there's no need for a VCLUnoHelper::GetWindow variant taking an XWindow2 reference that does the same as the variant taking an XWindow reference. Change-Id: I6f931252d2ae2e046dc31c076094e71b8aa71346 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185273 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
@@ -77,7 +77,6 @@ public:
|
||||
|
||||
// Window
|
||||
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindow>& rxWindow );
|
||||
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindow2>& rxWindow2 );
|
||||
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindowPeer>& rxWindowPeer );
|
||||
static css::uno::Reference< css::awt::XWindow> GetInterface( vcl::Window* pWindow );
|
||||
|
||||
|
||||
@@ -80,12 +80,6 @@ vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWind
|
||||
return pVCLXWindow ? pVCLXWindow->GetWindow() : nullptr;
|
||||
}
|
||||
|
||||
vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWindow2>& rxWindow )
|
||||
{
|
||||
VCLXWindow* pVCLXWindow = dynamic_cast<VCLXWindow*>( rxWindow.get() );
|
||||
return pVCLXWindow ? pVCLXWindow->GetWindow() : nullptr;
|
||||
}
|
||||
|
||||
vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWindowPeer>& rxWindow )
|
||||
{
|
||||
VCLXWindow* pVCLXWindow = dynamic_cast<VCLXWindow*>( rxWindow.get() );
|
||||
|
||||
Reference in New Issue
Block a user