From 389da66dfc96d06c407bff156c4ea21e940c5e06 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 May 2017 15:40:42 +0200 Subject: remove unused uno::Reference vars found by temporarily marking Reference as SAL_WARN_UNUSED. Change-Id: I18809b62654467f890016adcc92576980ced393b Reviewed-on: https://gerrit.libreoffice.org/37511 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 1 - xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 1 - xmlscript/source/xmllib_imexp/xmllib_export.cxx | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'xmlscript/source') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index 756424a96c5e..5a5afd351b71 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -462,7 +462,6 @@ Reference< xml::sax::XAttributeList > Style::createElement() void ElementDescriptor::addNumberFormatAttr( Reference< beans::XPropertySet > const & xFormatProperties ) { - Reference< beans::XPropertyState > xState( xFormatProperties, UNO_QUERY ); OUString sFormat; lang::Locale locale; OSL_VERIFY( xFormatProperties->getPropertyValue( "FormatString" ) >>= sFormat ); diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index 13f1576f8095..70d0a492b415 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -1778,7 +1778,6 @@ Reference< xml::input::XElement > StyleElement::startChildElement( void StyleElement::endElement() { - Reference< xml::input::XAttributes > xStyle; OUString aStyleId( _xAttributes->getValueByUidName( m_xImport->XMLNS_DIALOGS_UID, "style-id" ) ); if (!aStyleId.isEmpty()) { diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx index 5f553ddba2b4..bb92579f4f5f 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include #include @@ -99,8 +100,7 @@ SAL_CALL exportLibrary( " \"library.dtd\">" ); xOut->ignorableWhitespace( OUString() ); - XMLElement* pLibElement = new XMLElement( XMLNS_LIBRARY_PREFIX ":library" ); - Reference< xml::sax::XAttributeList > xAttributes( pLibElement ); + rtl::Reference pLibElement = new XMLElement( XMLNS_LIBRARY_PREFIX ":library" ); pLibElement->addAttribute( "xmlns:" XMLNS_LIBRARY_PREFIX, XMLNS_LIBRARY_URI ); -- cgit