summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:45:28 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:45:28 +0000
commit1b0cb8232626105b976073a48ee2208889d6736f (patch)
tree3d80713d700fd7d7a96d591dea19012e864e1f1e /forms/source/component
parent59b9d1d8f9a202e4c2afac13cb93c640a9811ee6 (diff)
INTEGRATION: CWS warnings01 (1.14.68); FILE MERGED
2006/03/14 15:20:24 fs 1.14.68.1: #i57457# warning-free code
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/CheckBox.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx
index f1ec09902743..b19e3ed9c56f 100644
--- a/forms/source/component/CheckBox.cxx
+++ b/forms/source/component/CheckBox.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: CheckBox.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 22:34:18 $
+ * last change: $Author: hr $ $Date: 2006-06-19 12:45:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -238,7 +238,7 @@ void SAL_CALL OCheckBoxModel::read(const Reference<stario::XObjectInputStream>&
break;
}
setReferenceValue( sReferenceValue );
- setDefaultChecked( nDefaultChecked );
+ setDefaultChecked( static_cast< CheckState >( nDefaultChecked ) );
// Nach dem Lesen die Defaultwerte anzeigen
if ( getControlSource().getLength() )
@@ -262,13 +262,13 @@ Any OCheckBoxModel::translateDbColumnToControlValue()
aValue <<= (sal_Int16)( bTriState ? STATE_DONTKNOW : getDefaultChecked() );
}
else
- aValue <<= ( bValue ? (sal_Int16)STATE_CHECK : (sal_Int16)STATE_NOCHECK );
+ aValue <<= (sal_Int16)( bValue ? STATE_CHECK : STATE_NOCHECK );
return aValue;
}
//-----------------------------------------------------------------------------
-sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool _bPostReset )
+sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
OSL_PRECOND( m_xColumnUpdate.is(), "OCheckBoxModel::commitControlValueToDbColumn: not bound!" );
if ( m_xColumnUpdate.is() )