summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:31:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:31:26 +0200
commit124ed93a80ceab20b9af5e477c4761785f25f202 (patch)
tree3583ab64f55a4d54129310eb50796516ffed914e /oox
parent7c024c78bcd0426e8c44b4639260eeddbfc2c2e3 (diff)
loplugin:casttovoid: oox
Change-Id: If0d0e801beae55c0cee1e6b5d18a494066090800
Diffstat (limited to 'oox')
-rw-r--r--oox/source/core/contexthandler2.cxx2
-rw-r--r--oox/source/core/recordparser.cxx1
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx2
3 files changed, 0 insertions, 5 deletions
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");