From 124ed93a80ceab20b9af5e477c4761785f25f202 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:31:26 +0200 Subject: loplugin:casttovoid: oox Change-Id: If0d0e801beae55c0cee1e6b5d18a494066090800 --- oox/source/core/contexthandler2.cxx | 2 -- oox/source/core/recordparser.cxx | 1 - oox/source/drawingml/diagram/diagram.cxx | 2 -- 3 files changed, 5 deletions(-) (limited to 'oox') diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx index baffe4ba2b76..3d6aadf81484 100644 --- a/oox/source/core/contexthandler2.cxx +++ b/oox/source/core/contexthandler2.cxx @@ -111,7 +111,6 @@ void ContextHandler2Helper::implCharacters( const OUString& rChars ) void ContextHandler2Helper::implEndElement( sal_Int32 nElement ) { - (void)nElement; // prevent "unused parameter" warning in product build OSL_ENSURE( getCurrentElementWithMce() == nElement, "ContextHandler2Helper::implEndElement - context stack broken" ); if( !mxContextStack->empty() ) { @@ -135,7 +134,6 @@ void ContextHandler2Helper::implStartRecord( sal_Int32 nRecId, SequenceInputStre void ContextHandler2Helper::implEndRecord( sal_Int32 nRecId ) { - (void)nRecId; // prevent "unused parameter" warning in product build OSL_ENSURE( getCurrentElementWithMce() == nRecId, "ContextHandler2Helper::implEndRecord - context stack broken" ); if( !mxContextStack->empty() ) { diff --git a/oox/source/core/recordparser.cxx b/oox/source/core/recordparser.cxx index 4459bfc3e93c..ebcd3a8cef29 100644 --- a/oox/source/core/recordparser.cxx +++ b/oox/source/core/recordparser.cxx @@ -260,7 +260,6 @@ void RecordParser::parseStream( const RecordInputSource& rInputSource ) mxStack->popContext(); // finalize the current context and pop context info from stack OSL_ENSURE( mxStack->getCurrentRecId() == pEndRecInfo->mnStartRecId, "RecordParser::parseStream - context records mismatch" ); - (void)pEndRecInfo; // suppress compiler warning for unused variable ContextHandlerRef xCurrContext = mxStack->getCurrentContext(); if( xCurrContext.is() ) { diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 86d1cf9cb835..467d7005b534 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -207,7 +207,6 @@ void Diagram::build( ) const bool bInserted1=getData()->getPointNameMap().insert( std::make_pair(aCurrPoint->msModelId,&(*aCurrPoint))).second; - (void)bInserted1; OSL_ENSURE(bInserted1,"Diagram::build(): non-unique point model id"); @@ -276,7 +275,6 @@ void Diagram::build( ) const bool bInserted1=getData()->getConnectionNameMap().insert( std::make_pair(aCurrCxn->msModelId,&(*aCurrCxn))).second; - (void)bInserted1; OSL_ENSURE(bInserted1,"Diagram::build(): non-unique connection model id"); -- cgit v1.2.3