diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx index f518e8c83a47..e311cf267bc2 100644 --- a/forms/source/component/RadioButton.cxx +++ b/forms/source/component/RadioButton.cxx @@ -4,9 +4,9 @@ * * $RCSfile: RadioButton.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: hr $ $Date: 2006-06-19 12:53:01 $ + * last change: $Author: kz $ $Date: 2006-07-19 16:44:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -209,7 +209,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons // nur wenn es ein Radio-Button ist if (!hasProperty(PROPERTY_CLASSID, xSiblingProperties)) continue; - sal_Int16 nType; + sal_Int16 nType = 0; xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType; if (nType != FormComponentType::RADIOBUTTON) continue; @@ -262,7 +262,7 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons // nur wenn ich nicht mich selber gefunden habe continue; - sal_Int16 nType; + sal_Int16 nType = 0; xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType; if (nType != FormComponentType::RADIOBUTTON) // nur Radio-Buttons @@ -430,7 +430,7 @@ sal_Bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) { try { - sal_Int16 nValue; + sal_Int16 nValue = 0; m_xAggregateSet->getPropertyValue( PROPERTY_STATE ) >>= nValue; if ( nValue == 1 ) xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) );