summaryrefslogtreecommitdiff
path: root/forms/source/misc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-11 18:51:50 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-12 10:05:25 +0900
commit75b835c8cd2953c5bc0f23df300ee553f94eb28d (patch)
tree753bf89fdc56cd3df9842adc7962b0965090cf44 /forms/source/misc
parentf00172b81c8bab0b1c62cbca1bc14b83deed8806 (diff)
catch exception by constant reference
Diffstat (limited to 'forms/source/misc')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 5015e8f620a0..0459c3014d54 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -541,7 +541,7 @@ namespace
xObjProps->setPropertyValue( PROPERTY_NAME, makeAny( FRM_RES_STRING( RID_STR_CONTROL_SUBSTITUTED_NAME ) ) );
xObjProps->setPropertyValue( PROPERTY_TAG, makeAny( FRM_RES_STRING( RID_STR_CONTROL_SUBSTITUTED_EPXPLAIN ) ) );
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -576,9 +576,8 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >&
{
xObj = _rxInStream->readObject();
}
- catch(WrongFormatException& e)
+ catch(const WrongFormatException&)
{
- (void)e; // make compiler happy
// the object could not be read
// create a object (so the readEvents below will assign the events to the right controls)
xObj = lcl_createPlaceHolder( m_xServiceFactory );
@@ -586,7 +585,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >&
// couldn't handle it
throw;
}
- catch(Exception&)
+ catch(const Exception&)
{
// unsere Map leeren
while (!m_aItems.empty())