diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-11 18:51:50 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-12 10:05:25 +0900 |
commit | 75b835c8cd2953c5bc0f23df300ee553f94eb28d (patch) | |
tree | 753bf89fdc56cd3df9842adc7962b0965090cf44 /forms/source/misc | |
parent | f00172b81c8bab0b1c62cbca1bc14b83deed8806 (diff) |
catch exception by constant reference
Diffstat (limited to 'forms/source/misc')
-rw-r--r-- | forms/source/misc/InterfaceContainer.cxx | 7 |
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()) |