[Libreoffice-commits] core.git: basic/source
Caolán McNamara
caolanm at redhat.com
Thu Feb 25 20:36:10 UTC 2016
basic/source/classes/sbunoobj.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 26be25f27d2f67bdee0d2a4ad95d9d252e470780
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Feb 25 20:35:33 2016 +0000
coverity#1231668 Unchecked return value
Change-Id: I4c83b1290484dabc9d40f970a3a86de5d6dc3928
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index d6cf561..e98b0d0 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4741,13 +4741,15 @@ Any StructRefInfo::getValue()
void StructRefInfo::setValue( const Any& rValue )
{
- uno_type_assignData( getInst(),
+ bool bSuccess = uno_type_assignData( getInst(),
maType.getTypeLibType(),
const_cast<void*>(rValue.getValue()),
rValue.getValueTypeRef(),
reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface),
reinterpret_cast< uno_AcquireFunc >(cpp_acquire),
reinterpret_cast< uno_ReleaseFunc >(cpp_release) );
+ OSL_ENSURE(bSuccess,
+ "StructRefInfo::setValue: ooops .... the value could not be assigned!");
}
OUString StructRefInfo::getTypeName() const
More information about the Libreoffice-commits
mailing list