From b7a1e92a27bc26f222526eb50ab80c0e6966be7a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 23 Feb 2020 21:06:10 +0200 Subject: loplugin:referencecasting getting --enable-pch=normal working with clang means that the plugins now have a better view on some stuff, so trigger more warnings Change-Id: I83ca010c0ef07c8106068362bb50a354e3cf7dae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89312 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/wrtxml.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/xml/wrtxml.cxx') diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 4904f63d75dc..4a7d5f879524 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -248,8 +249,7 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS *pArgs++ <<= xStatusIndicator; //Get model - uno::Reference< lang::XComponent > xModelComp( - m_pDoc->GetDocShell()->GetModel(), UNO_QUERY ); + uno::Reference< lang::XComponent > xModelComp = m_pDoc->GetDocShell()->GetModel(); OSL_ENSURE( xModelComp.is(), "XMLWriter::Write: got no model" ); if( !xModelComp.is() ) return ERR_SWG_WRITE_ERROR; -- cgit