From cb0e009a9e6903fc7b814c38b60f3f895a878028 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 30 Oct 2014 10:10:09 +0000 Subject: document array_vs_singleton dismissals Change-Id: I8d7eb4c01197e885abca717c7814c61a7641ac9d --- cppu/source/typelib/static_types.cxx | 3 +-- cppu/source/typelib/typelib.cxx | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cppu') diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx index 82640a014f54..887a884bf0ce 100644 --- a/cppu/source/typelib/static_types.cxx +++ b/cppu/source/typelib/static_types.cxx @@ -439,18 +439,17 @@ CPPU_DLLPUBLIC void SAL_CALL typelib_static_struct_type_init( ppMembers, pParameterizedTypes); } - CPPU_DLLPUBLIC void SAL_CALL typelib_static_interface_type_init( typelib_TypeDescriptionReference ** ppRef, const sal_Char * pTypeName, typelib_TypeDescriptionReference * pBaseType ) SAL_THROW_EXTERN_C() { + // coverity[array_vs_singleton] typelib_static_mi_interface_type_init( ppRef, pTypeName, pBaseType == 0 ? 0 : 1, &pBaseType); } - CPPU_DLLPUBLIC void SAL_CALL typelib_static_mi_interface_type_init( typelib_TypeDescriptionReference ** ppRef, const sal_Char * pTypeName, diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 56f8c8512e99..b0b1a17d306e 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -901,6 +901,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterface( typelib_TypeDescriptionReference ** ppMembers ) SAL_THROW_EXTERN_C() { + // coverity[array_vs_singleton] typelib_typedescription_newMIInterface( ppRet, pTypeName, 0, 0, 0, 0, 0, pBaseInterface == 0 ? 0 : 1, &pBaseInterface, nMembers, ppMembers); -- cgit