summaryrefslogtreecommitdiffstats
path: root/forms/source/component/RadioButton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/RadioButton.cxx')
-rw-r--r--forms/source/component/RadioButton.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx
index 8e686e10fda6..3a6ffb139642 100644
--- a/forms/source/component/RadioButton.cxx
+++ b/forms/source/component/RadioButton.cxx
@@ -36,11 +36,8 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
-using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
-using namespace ::com::sun::star::form::binding;
css::uno::Sequence<OUString> SAL_CALL ORadioButtonControl::getSupportedServiceNames()
@@ -63,7 +60,7 @@ ORadioButtonControl::ORadioButtonControl(const Reference<XComponentContext>& _rx
ORadioButtonModel::ORadioButtonModel(const Reference<XComponentContext>& _rxFactory)
:OReferenceValueComponent( _rxFactory, VCL_CONTROLMODEL_RADIOBUTTON, FRM_SUN_CONTROL_RADIOBUTTON )
- // use the old control name for compytibility reasons
+ // use the old control name for compatibility reasons
{
m_nClassId = FormComponentType::RADIOBUTTON;
@@ -346,7 +343,7 @@ void ORadioButtonModel::_propertyChanged(const PropertyChangeEvent& _rEvent)
Any ORadioButtonModel::translateDbColumnToControlValue()
{
- return makeAny( static_cast<sal_Int16>( ( m_xColumn->getString() == getReferenceValue() ) ? TRISTATE_TRUE : TRISTATE_FALSE )
+ return Any( static_cast<sal_Int16>( ( m_xColumn->getString() == getReferenceValue() ) ? TRISTATE_TRUE : TRISTATE_FALSE )
);
}
@@ -373,7 +370,7 @@ bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
sal_Int16 nValue = 0;
m_xAggregateSet->getPropertyValue( PROPERTY_STATE ) >>= nValue;
if ( nValue == 1 )
- xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) );
+ xField->setPropertyValue( PROPERTY_VALUE, Any( getReferenceValue() ) );
}
catch(const Exception&)
{