INTEGRATION: CWS warningfixes02 (1.18.4); FILE MERGED

2006/06/30 12:17:35 sb 1.18.4.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
This commit is contained in:
Kurt Zenker 2006-07-19 15:44:13 +00:00
parent 0a7b079692
commit 690ab1c996

View file

@ -4,9 +4,9 @@
* *
* $RCSfile: RadioButton.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * 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 // nur wenn es ein Radio-Button ist
if (!hasProperty(PROPERTY_CLASSID, xSiblingProperties)) if (!hasProperty(PROPERTY_CLASSID, xSiblingProperties))
continue; continue;
sal_Int16 nType; sal_Int16 nType = 0;
xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType; xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType;
if (nType != FormComponentType::RADIOBUTTON) if (nType != FormComponentType::RADIOBUTTON)
continue; continue;
@ -262,7 +262,7 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
// nur wenn ich nicht mich selber gefunden habe // nur wenn ich nicht mich selber gefunden habe
continue; continue;
sal_Int16 nType; sal_Int16 nType = 0;
xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType; xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType;
if (nType != FormComponentType::RADIOBUTTON) if (nType != FormComponentType::RADIOBUTTON)
// nur Radio-Buttons // nur Radio-Buttons
@ -430,7 +430,7 @@ sal_Bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{ {
try try
{ {
sal_Int16 nValue; sal_Int16 nValue = 0;
m_xAggregateSet->getPropertyValue( PROPERTY_STATE ) >>= nValue; m_xAggregateSet->getPropertyValue( PROPERTY_STATE ) >>= nValue;
if ( nValue == 1 ) if ( nValue == 1 )
xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) ); xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) );