diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 11:45:28 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 11:45:28 +0000 |
commit | 1b0cb8232626105b976073a48ee2208889d6736f (patch) | |
tree | 3d80713d700fd7d7a96d591dea19012e864e1f1e /forms/source/component/CheckBox.cxx | |
parent | INTEGRATION: CWS warnings01 (1.18.68); FILE MERGED (diff) | |
download | core-1b0cb8232626105b976073a48ee2208889d6736f.tar.gz core-1b0cb8232626105b976073a48ee2208889d6736f.zip |
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/CheckBox.cxx')
-rw-r--r-- | forms/source/component/CheckBox.cxx | 10 |
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() ) |