diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-06 12:37:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-06 12:38:16 +0200 |
commit | c0d037a6ecbd4389abe3ca9e958d8a4ac9e0287e (patch) | |
tree | 617f52ca3be4d2c2f6b5b21fc4ed9a3a8dd1fe77 /forms/source/component/CheckBox.cxx | |
parent | ImplSVEvent::mnEvent is always zero (diff) | |
download | core-c0d037a6ecbd4389abe3ca9e958d8a4ac9e0287e.tar.gz core-c0d037a6ecbd4389abe3ca9e958d8a4ac9e0287e.zip |
forms: sal_Bool->bool
Change-Id: Ifa15f4ed3107b1075b504f09d2cae69ee38d347a
Diffstat (limited to 'forms/source/component/CheckBox.cxx')
-rw-r--r-- | forms/source/component/CheckBox.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx index ccbfed465778..8d92bbf5ccb3 100644 --- a/forms/source/component/CheckBox.cxx +++ b/forms/source/component/CheckBox.cxx @@ -81,7 +81,7 @@ InterfaceRef SAL_CALL OCheckBoxModel_CreateInstance(const Reference<XMultiServic OCheckBoxModel::OCheckBoxModel(const Reference<XComponentContext>& _rxFactory) - :OReferenceValueComponent( _rxFactory, VCL_CONTROLMODEL_CHECKBOX, FRM_SUN_CONTROL_CHECKBOX, sal_True ) + :OReferenceValueComponent( _rxFactory, VCL_CONTROLMODEL_CHECKBOX, FRM_SUN_CONTROL_CHECKBOX, true ) // use the old control name for compytibility reasons { @@ -230,7 +230,7 @@ Any OCheckBoxModel::translateDbColumnToControlValue() } if ( m_xColumn->wasNull() ) { - sal_Bool bTriState = sal_True; + bool bTriState = true; if ( m_xAggregateSet.is() ) m_xAggregateSet->getPropertyValue( PROPERTY_TRISTATE ) >>= bTriState; aValue <<= (sal_Int16)( bTriState ? TRISTATE_INDET : getDefaultChecked() ); @@ -248,7 +248,7 @@ Any OCheckBoxModel::translateDbColumnToControlValue() } -sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) +bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) { OSL_PRECOND( m_xColumnUpdate.is(), "OCheckBoxModel::commitControlValueToDbColumn: not bound!" ); if ( m_xColumnUpdate.is() ) @@ -284,7 +284,7 @@ sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: could not commit !"); } } - return sal_True; + return true; } |