summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-25 20:35:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-25 20:35:33 +0000
commit26be25f27d2f67bdee0d2a4ad95d9d252e470780 (patch)
treeb2b6db1bc7177c1cd35bcbcb6a9bd1247317f064 /basic
parentd31f597261cbac64ed69b0f61480c9a757519dd0 (diff)
coverity#1231668 Unchecked return value
Change-Id: I4c83b1290484dabc9d40f970a3a86de5d6dc3928
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index d6cf5611051c..e98b0d069449 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