diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:37:51 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:37:51 +0000 |
commit | 1756efcc0cb361258416cfc081c8ff6228424797 (patch) | |
tree | 436f5449a019820baa112aa1b7c3ed2b867c823b /bridges/inc | |
parent | e830fbd415dedf367a96efadbc959aca39d53c2e (diff) |
INTEGRATION: CWS warnings01 (1.4.4); FILE MERGED
2006/02/28 15:00:31 sb 1.4.4.1: #i53898# Made code waring-free.
Diffstat (limited to 'bridges/inc')
-rw-r--r-- | bridges/inc/bridges/cpp_uno/type_misc.hxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bridges/inc/bridges/cpp_uno/type_misc.hxx b/bridges/inc/bridges/cpp_uno/type_misc.hxx index 75d83a6976ab..83de01b5e1d0 100644 --- a/bridges/inc/bridges/cpp_uno/type_misc.hxx +++ b/bridges/inc/bridges/cpp_uno/type_misc.hxx @@ -4,9 +4,9 @@ * * $RCSfile: type_misc.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 22:08:35 $ + * last change: $Author: hr $ $Date: 2006-06-19 23:37:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -71,8 +71,9 @@ inline bool cppu_relatesToInterface( typelib_TypeDescription * pTypeDescr ) SAL_ TYPELIB_DANGER_RELEASE( pTD ); return bRel; } + default: + return false; } - return false; } case typelib_TypeClass_STRUCT: case typelib_TypeClass_EXCEPTION: @@ -100,18 +101,21 @@ inline bool cppu_relatesToInterface( typelib_TypeDescription * pTypeDescr ) SAL_ if (bRel) return true; } + default: + break; } } if (pComp->pBaseTypeDescription) return cppu_relatesToInterface( (typelib_TypeDescription *)pComp->pBaseTypeDescription ); - break; + return false; } case typelib_TypeClass_UNION: // might relate to interface case typelib_TypeClass_ANY: // might relate to interface case typelib_TypeClass_INTERFACE: return true; + default: + return false; } - return false; } /** Determines whether given type is a cpp simple type, e.g. int, enum.<br> |