summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-30 14:43:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-30 15:46:08 +0200
commita45d968888e5970786528a74fd2063a6f9f25460 (patch)
tree3ff5c1f9c92a53df71c81f94c0df60c3af6baffd
parent77d2610012536fa2c31c55c3803a57c6eddd58f2 (diff)
Remove redundant casts to void
...leftovers from de02d221e104f74bfa595d5e6c41248093c640f3 "printfs in comments" Change-Id: I0125ac2b5ea0b4450e8f707f980959443a6c4d27
-rw-r--r--writerfilter/source/dmapper/FontTable.cxx3
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx11
2 files changed, 3 insertions, 11 deletions
diff --git a/writerfilter/source/dmapper/FontTable.cxx b/writerfilter/source/dmapper/FontTable.cxx
index 67c0aae28aaa..59cd5d083249 100644
--- a/writerfilter/source/dmapper/FontTable.cxx
+++ b/writerfilter/source/dmapper/FontTable.cxx
@@ -113,9 +113,6 @@ void FontTable::lcl_sprm(Sprm& rSprm)
return ;
sal_uInt32 nSprmId = rSprm.getId();
- Value::Pointer_t pValue = rSprm.getValue();
- sal_Int32 nIntValue = pValue->getInt();
- (void)nIntValue;
switch(nSprmId)
{
case NS_ooxml::LN_CT_Font_charset:
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 36f99ee9ed32..8f5003784a9d 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -411,7 +411,6 @@ void StyleSheetTable::lcl_attribute(Id Name, Value & val)
if(!m_pImpl->m_pCurrentEntry)
return ;
int nIntValue = val.getInt();
- (void)nIntValue;
OUString sValue = val.getString();
// The default type is paragraph, and it needs to be processed first,
@@ -512,7 +511,6 @@ void StyleSheetTable::lcl_sprm(Sprm & rSprm)
sal_uInt32 nSprmId = rSprm.getId();
Value::Pointer_t pValue = rSprm.getValue();
sal_Int32 nIntValue = pValue.get() ? pValue->getInt() : 0;
- (void)nIntValue;
OUString sStringValue = pValue.get() ? pValue->getString() : OUString();
switch(nSprmId)
@@ -1190,9 +1188,8 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
#endif
SAL_WARN("writerfilter", aMessage.getStr());
}
- catch( const uno::Exception& rEx)
+ catch( const uno::Exception& )
{
- (void) rEx;
OSL_FAIL( "Some style properties could not be set");
}
}
@@ -1600,9 +1597,8 @@ OUString StyleSheetTable::getOrCreateCharStyle( PropertyValueVector_t& rCharProp
{
xStyleProps->setPropertyValue( aCharPropIter->Name, aCharPropIter->Value );
}
- catch( const uno::Exception& rEx )
+ catch( const uno::Exception& )
{
- (void)rEx;
OSL_FAIL( "Exception in StyleSheetTable::getOrCreateCharStyle - Style::setPropertyValue");
}
++aCharPropIter;
@@ -1610,9 +1606,8 @@ OUString StyleSheetTable::getOrCreateCharStyle( PropertyValueVector_t& rCharProp
xCharStyles->insertByName( sListLabel, uno::makeAny( xStyle) );
m_pImpl->m_aListCharStylePropertyVector.push_back( ListCharStylePropertyMap_t( sListLabel, rCharProperties ));
}
- catch( const uno::Exception& rEx )
+ catch( const uno::Exception& )
{
- (void)rEx;
OSL_FAIL( "Exception in StyleSheetTable::getOrCreateCharStyle");
}