From 8fe9b36f93c9b0744c978aad7306e6772df3692a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jun 2014 17:50:15 +0200 Subject: [PATCH] loplugin:staticcall Change-Id: Ic331af3539ed0a8ce6f56697ee1dede004685c32 --- fpicker/source/office/commonpicker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx index 745c877b5731..963a7fb46568 100644 --- a/fpicker/source/office/commonpicker.cxx +++ b/fpicker/source/office/commonpicker.cxx @@ -232,7 +232,7 @@ namespace svt // _and_ add as event listener to the parent - in case the parent is destroyed // before we are disposed, our disposal would access dead VCL windows then .... m_xDialogParent = VCLUnoHelper::GetInterface( m_pDlg->GetParent() ); - xWindowComp = xWindowComp.query( m_xDialogParent ); + xWindowComp.set(m_xDialogParent, css::uno::UNO_QUERY); OSL_ENSURE( xWindowComp.is() || !m_pDlg->GetParent(), "OCommonPicker::createFileDialog: invalid window component (the parent this time)!" ); if ( xWindowComp.is() ) {