diff options
-rw-r--r-- | rdbmaker/source/rdbmaker/typeblop.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/rdbmaker/source/rdbmaker/typeblop.cxx b/rdbmaker/source/rdbmaker/typeblop.cxx index 0f1a34d8b8f7..2cf7e8211c0f 100644 --- a/rdbmaker/source/rdbmaker/typeblop.cxx +++ b/rdbmaker/source/rdbmaker/typeblop.cxx @@ -4,9 +4,9 @@ * * $RCSfile: typeblop.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2005-09-09 05:07:16 $ + * last change: $Author: hr $ $Date: 2006-06-20 04:10:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -173,6 +173,9 @@ void writeConstantData( RegistryTypeWriter& rWriter, sal_uInt16 fieldIndex, constValue.m_value.aString = ((OUString*)aConstantAny.getValue())->getStr(); } break; + default: + OSL_ASSERT(false); + break; } rWriter.setFieldData(fieldIndex, uConstName, uConstTypeName, OUString(), @@ -457,7 +460,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) { attrAccess = RT_ACCESS_READWRITE; } - writer.setFieldData(memberTypes[i]->getPosition() - inheritedMemberCount, + writer.setFieldData(sal::static_int_cast< sal_uInt16 >(memberTypes[i]->getPosition() - inheritedMemberCount), memberTypes[i]->getMemberName(), xAttr->getType()->getName().replace('.', '/'), OUString(), OUString(), attrAccess); @@ -562,6 +565,9 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) rtl_copyMemory(*pBlop, writer.getBlop(), length); } break; + default: + OSL_ASSERT(false); + break; } } |