summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtimp.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-16 00:26:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-16 09:15:37 +0100
commit43afab8818d7bca24897ddee9b74fbeb74bf4c56 (patch)
tree97b161e5cc5dbe12129681365dc2c6f2ed745926 /xmloff/source/text/txtimp.cxx
parent9e98f12db714b8a1a8cc64234bb4eea26e936166 (diff)
catch by const reference
Diffstat (limited to 'xmloff/source/text/txtimp.cxx')
-rw-r--r--xmloff/source/text/txtimp.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index e81610773293..a925649ba5f8 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -924,8 +924,9 @@ namespace
{
m_xOutParams->insertByName(pCurrent->first, pCurrent->second);
}
- catch(ElementExistException)
- { }
+ catch(const ElementExistException&)
+ {
+ }
}
}
}
@@ -1632,7 +1633,7 @@ OUString XMLTextImportHelper::SetStyleAndAttrs(
xPropSet->setPropertyValue(
s_NumberingRules, makeAny(xNewNumRules) );
}
- catch( Exception e )
+ catch(const Exception&)
{
; // I would really like to use a warning here,
// but I can't access the XMLErrorHandler from
@@ -1799,9 +1800,8 @@ OUString XMLTextImportHelper::SetStyleAndAttrs(
xCrsr->gotoRange( xRange->getEnd(), true );
xCrsr->setString( ::rtl::OUString() );
}
- catch( const uno::Exception& rEx )
+ catch(const uno::Exception&)
{
- (void)rEx;
}
}
}