summaryrefslogtreecommitdiff
path: root/forms/source/component/FormComponent.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-19 14:06:18 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-19 14:06:18 +0100
commit352f1a58e24c9c3ec45829111a77fa9fbd8065ab (patch)
treef4d3ec761af697a535fad86c5fec2e045c933d0e /forms/source/component/FormComponent.cxx
parent00d5ba291e359368ee484a7c0c43281c22bd3df6 (diff)
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'forms/source/component/FormComponent.cxx')
-rw-r--r--forms/source/component/FormComponent.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 4eeb9970da33..14c9f4fce067 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -564,7 +564,7 @@ void OControlModel::readHelpTextCompatibly(const staruno::Reference< stario::XOb
}
catch(const Exception&)
{
- OSL_ENSURE(sal_False, "OControlModel::readHelpTextCompatibly: could not forward the property value to the aggregate!");
+ OSL_FAIL("OControlModel::readHelpTextCompatibly: could not forward the property value to the aggregate!");
}
}
@@ -579,7 +579,7 @@ void OControlModel::writeHelpTextCompatibly(const staruno::Reference< stario::XO
}
catch(const Exception&)
{
- OSL_ENSURE(sal_False, "OControlModel::writeHelpTextCompatibly: could not retrieve the property value from the aggregate!");
+ OSL_FAIL("OControlModel::writeHelpTextCompatibly: could not retrieve the property value from the aggregate!");
}
::comphelper::operator<<( _rxOutStream, sHelpText);
}
@@ -619,7 +619,7 @@ OControlModel::OControlModel(
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OControlModel::OControlModel: caught an exception!" );
+ OSL_FAIL( "OControlModel::OControlModel: caught an exception!" );
}
}
}
@@ -1966,7 +1966,7 @@ void SAL_CALL OBoundControlModel::propertyChange( const PropertyChangeEvent& evt
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::propertyChange: could not adjust my binding-controlled property!" );
+ OSL_FAIL( "OBoundControlModel::propertyChange: could not adjust my binding-controlled property!" );
}
}
}
@@ -2132,7 +2132,7 @@ sal_Bool OBoundControlModel::connectToField(const Reference<XRowSet>& rForm)
}
else
{
- OSL_ENSURE(sal_False, "OBoundControlModel::connectToField: property NAME not supported!");
+ OSL_FAIL("OBoundControlModel::connectToField: property NAME not supported!");
impl_setField_noNotify( NULL );
}
}
@@ -2341,7 +2341,7 @@ void OBoundControlModel::doSetControlValue( const Any& _rValue )
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::doSetControlValue: caught an exception!" );
+ OSL_FAIL( "OBoundControlModel::doSetControlValue: caught an exception!" );
}
}
@@ -2361,7 +2361,7 @@ void OBoundControlModel::onConnectedValidator( )
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::onConnectedValidator: caught an exception!" );
+ OSL_FAIL( "OBoundControlModel::onConnectedValidator: caught an exception!" );
}
recheckValidity( false );
}
@@ -2379,7 +2379,7 @@ void OBoundControlModel::onDisconnectedValidator( )
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::onDisconnectedValidator: caught an exception!" );
+ OSL_FAIL( "OBoundControlModel::onDisconnectedValidator: caught an exception!" );
}
recheckValidity( false );
}
@@ -2467,7 +2467,7 @@ void OBoundControlModel::reset() throw (RuntimeException)
}
catch( const SQLException& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::reset: caught an SQL exception!" );
+ OSL_FAIL( "OBoundControlModel::reset: caught an SQL exception!" );
}
// #i24495# - don't count the insert row as "invalid"
@@ -2676,7 +2676,7 @@ void OBoundControlModel::disconnectExternalValueBinding( )
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::disconnectExternalValueBinding: caught an exception!" );
+ OSL_FAIL( "OBoundControlModel::disconnectExternalValueBinding: caught an exception!" );
}
// if the binding also acts as our validator, disconnect the validator, too
@@ -3045,7 +3045,7 @@ void OBoundControlModel::recheckValidity( bool _bForceNotification )
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OBoundControlModel::recheckValidity: caught an exception!" );
+ OSL_FAIL( "OBoundControlModel::recheckValidity: caught an exception!" );
}
}