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/component/FormComponent.cxx | |
parent | f00172b81c8bab0b1c62cbca1bc14b83deed8806 (diff) |
catch exception by constant reference
Diffstat (limited to 'forms/source/component/FormComponent.cxx')
-rw-r--r-- | forms/source/component/FormComponent.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 86effb27a13c..3c3e13b00c9e 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -2068,7 +2068,7 @@ sal_Bool SAL_CALL OBoundControlModel::commit() throw(RuntimeException) if ( m_xColumnUpdate.is() ) bSuccess = commitControlValueToDbColumn( sal_False ); } - catch(Exception&) + catch(const Exception&) { bSuccess = sal_False; } @@ -2527,7 +2527,7 @@ void OBoundControlModel::reset() throw (RuntimeException) bIsNull = m_xColumn->wasNull(); } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("OBoundControlModel::reset: this should have succeeded in all cases!"); } |