diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-07-19 15:13:18 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-07-19 15:13:18 +0000 |
commit | 08efae6101f6adb675640373206cfa02a9fe78b3 (patch) | |
tree | f65539ceb80be3b7bf646facebb55e589b91c42c /configmgr/source/registry | |
parent | 6658a252a1ed8e10c5073118c569b72005273a17 (diff) |
INTEGRATION: CWS warningfixes02 (1.11.6); FILE MERGED
2006/06/30 11:54:58 sb 1.11.6.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
Diffstat (limited to 'configmgr/source/registry')
-rw-r--r-- | configmgr/source/registry/cfgregistrykey.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configmgr/source/registry/cfgregistrykey.cxx b/configmgr/source/registry/cfgregistrykey.cxx index 8584307b8b..585648b316 100644 --- a/configmgr/source/registry/cfgregistrykey.cxx +++ b/configmgr/source/registry/cfgregistrykey.cxx @@ -4,9 +4,9 @@ * * $RCSfile: cfgregistrykey.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: hr $ $Date: 2006-06-19 23:28:42 $ + * last change: $Author: kz $ $Date: 2006-07-19 16:13:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -886,8 +886,8 @@ sal_Int32 SAL_CALL OConfigurationRegistryKey::getLongValue( ) throw(InvalidRegi switch (aValue.getValueTypeClass()) { // integral types that are small enough are straightforward - case TypeClass_BYTE : { sal_Int8 nNativeValue; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; - case TypeClass_BOOLEAN : { sal_Bool nNativeValue; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; + case TypeClass_BYTE : { sal_Int8 nNativeValue = 0; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; + case TypeClass_BOOLEAN : { sal_Bool nNativeValue = false; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; case TypeClass_SHORT : { sal_Int16 nNativeValue; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; case TypeClass_UNSIGNED_SHORT : { sal_uInt16 nNativeValue; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; case TypeClass_LONG : { sal_Int32 nNativeValue; aValue >>= nNativeValue; nLongValue = nNativeValue; } break; |