diff options
Diffstat (limited to 'forms/source/component')
-rw-r--r-- | forms/source/component/CheckBox.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/ComboBox.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/Currency.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/Date.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/FormComponent.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/FormattedField.cxx | 8 | ||||
-rw-r--r-- | forms/source/component/ImageControl.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/ListBox.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/Numeric.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/RadioButton.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/Time.cxx | 4 |
11 files changed, 20 insertions, 20 deletions
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx index 989a4cbd9870..b0dd35f947d4 100644 --- a/forms/source/component/CheckBox.cxx +++ b/forms/source/component/CheckBox.cxx @@ -258,7 +258,7 @@ sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: invalid value !"); } } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: could not commit !"); } diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx index eadf1a8fc3f9..6224c5b6f831 100644 --- a/forms/source/component/ComboBox.cxx +++ b/forms/source/component/ComboBox.cxx @@ -598,7 +598,7 @@ void OComboBoxModel::loadData( bool _bForce ) xListCursor.reset( m_aListRowSet.execute() ); } } - catch(SQLException& eSQL) + catch(const SQLException& eSQL) { onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST)); return; @@ -670,7 +670,7 @@ void OComboBoxModel::loadData( bool _bForce ) break; } } - catch(SQLException& eSQL) + catch(const SQLException& eSQL) { onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST)); return; diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx index 6589564e9a09..180c98556abe 100644 --- a/forms/source/component/Currency.cxx +++ b/forms/source/component/Currency.cxx @@ -133,7 +133,7 @@ void OCurrencyModel::implConstruct() m_xAggregateSet->setPropertyValue(PROPERTY_CURRSYM_POSITION, makeAny(bPrependCurrencySymbol)); } } - catch(Exception&) + catch(const Exception&) { OSL_FAIL( "OCurrencyModel::implConstruct: caught an exception while initializing the aggregate!" ); } @@ -224,7 +224,7 @@ sal_Bool OCurrencyModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) { m_xColumnUpdate->updateDouble( getDouble( aControlValue ) ); } - catch(Exception&) + catch(const Exception&) { return sal_False; } diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx index 5230c738a718..bdbaefa2148a 100644 --- a/forms/source/component/Date.cxx +++ b/forms/source/component/Date.cxx @@ -236,7 +236,7 @@ void ODateModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm ) xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; m_bDateTimeField = (nFieldType == DataType::TIMESTAMP); } - catch(Exception&) + catch(const Exception&) { } } @@ -273,7 +273,7 @@ sal_Bool ODateModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) m_xColumnUpdate->updateTimestamp( aDateTime ); } } - catch(Exception&) + catch(const Exception&) { return sal_False; } 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!"); } diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index 392c24aa82a1..5a572cb1041d 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -589,7 +589,7 @@ void OFormattedModel::_propertyChanged( const com::sun::star::beans::PropertyCha calculateExternalValueType(); } } - catch(Exception&) + catch(const Exception&) { } } @@ -888,7 +888,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream) Any aEffectiveValue; if (m_xAggregateSet.is()) { - try { aEffectiveValue = m_xAggregateSet->getPropertyValue(PROPERTY_EFFECTIVE_VALUE); } catch(Exception&) { } + try { aEffectiveValue = m_xAggregateSet->getPropertyValue(PROPERTY_EFFECTIVE_VALUE); } catch(const Exception&) { } } { @@ -987,7 +987,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr { m_xAggregateSet->setPropertyValue(PROPERTY_EFFECTIVE_VALUE, aEffectiveValue); } - catch(Exception&) + catch(const Exception&) { } } @@ -1049,7 +1049,7 @@ sal_Bool OFormattedModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) m_xColumnUpdate->updateString( getString( aControlValue ) ); } } - catch(Exception&) + catch(const Exception&) { return sal_False; } diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx index 94ffd29b540c..611527690671 100644 --- a/forms/source/component/ImageControl.cxx +++ b/forms/source/component/ImageControl.cxx @@ -871,7 +871,7 @@ bool OImageControlControl::implInsertGraphics() return true; } } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("OImageControlControl::implInsertGraphics: caught an exception while attempting to execute the FilePicker!"); } diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index d982e50576fd..c0b00a1bd49b 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -796,7 +796,7 @@ namespace frm xListCursor.reset( m_aListRowSet.execute() ); } } - catch(SQLException& eSQL) + catch(const SQLException& eSQL) { onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST)); return; @@ -902,7 +902,7 @@ namespace frm break; } } - catch(SQLException& eSQL) + catch(const SQLException& eSQL) { onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST)); return; diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx index d96a2a8907aa..7fa0bf8e17f9 100644 --- a/forms/source/component/Numeric.cxx +++ b/forms/source/component/Numeric.cxx @@ -178,7 +178,7 @@ sal_Bool ONumericModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) { m_xColumnUpdate->updateDouble( getDouble( aControlValue ) ); } - catch(Exception&) + catch(const Exception&) { return sal_False; } diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx index 1862168e8348..77c0ee6a1c05 100644 --- a/forms/source/component/RadioButton.cxx +++ b/forms/source/component/RadioButton.cxx @@ -421,7 +421,7 @@ sal_Bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) if ( nValue == 1 ) xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) ); } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("ORadioButtonModel::commitControlValueToDbColumn: could not commit !"); } diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx index 400fac803dd5..11865d422f0b 100644 --- a/forms/source/component/Time.cxx +++ b/forms/source/component/Time.cxx @@ -233,7 +233,7 @@ void OTimeModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm ) xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; m_bDateTimeField = (nFieldType == DataType::TIMESTAMP); } - catch(Exception&) + catch(const Exception&) { } } @@ -271,7 +271,7 @@ sal_Bool OTimeModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) m_xColumnUpdate->updateTimestamp(aDateTime); } } - catch(Exception&) + catch(const Exception&) { return sal_False; } |