diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:04:10 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:04:10 +0000 |
commit | cfaae72139d66293635a3b32a2ced4a57ed969c5 (patch) | |
tree | aacbb48560a363bb6f84d5484a3e99dcba287cdc /stoc | |
parent | e57aa03361f911f78b08a1388ba2f550df3be830 (diff) |
INTEGRATION: CWS warnings01 (1.16.42); FILE MERGED
2005/09/22 19:52:08 sb 1.16.42.2: RESYNC: (1.16-1.17); FILE MERGED
2005/09/19 15:23:54 sb 1.16.42.1: #i53898# Made code warning-free.
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/registry_tdprovider/base.hxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/stoc/source/registry_tdprovider/base.hxx b/stoc/source/registry_tdprovider/base.hxx index 656773960bab..1f2b58b80f43 100644 --- a/stoc/source/registry_tdprovider/base.hxx +++ b/stoc/source/registry_tdprovider/base.hxx @@ -4,9 +4,9 @@ * * $RCSfile: base.hxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: rt $ $Date: 2005-09-08 08:02:30 $ + * last change: $Author: hr $ $Date: 2006-06-20 00:04:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -155,9 +155,10 @@ inline sal_Int32 getRTValueAsInt32( const RTConstValue & rVal ) return rVal.m_value.aLong; case RT_TYPE_UINT32: return rVal.m_value.aULong; + default: + OSL_ENSURE( sal_False, "### unexpected value type!" ); + return 0; } - OSL_ENSURE( sal_False, "### unexpected value type!" ); - return 0; } //-------------------------------------------------------------------------------------------------- inline Any getRTValue( const RTConstValue & rVal ) @@ -189,9 +190,10 @@ inline Any getRTValue( const RTConstValue & rVal ) OUString aStr( rVal.m_value.aString ); return Any( &aStr, ::getCppuType( (const OUString *)0 ) ); } + default: + OSL_ENSURE( sal_False, "### unexpected RTValue!" ); + return Any(); } - OSL_ENSURE( sal_False, "### unexpected RTValue!" ); - return Any(); } //================================================================================================== @@ -349,9 +351,9 @@ public: const OUString & rName, sal_Int32 nDefaultValue, const Sequence< sal_Int8 > & rBytes, bool published ) : _xTDMgr( xTDMgr ) + , _aBytes( rBytes ) , _aName( rName ) , _nDefaultValue( nDefaultValue ) - , _aBytes( rBytes ) , _pEnumNames( 0 ) , _pEnumValues( 0 ) , _published( published ) |