From d438c470d783c0245231855b20233c5b3e3e691d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 17 Aug 2014 14:27:09 +0100 Subject: coverity#1231668 Unchecked return value Change-Id: Ia7e47b5d42e9a488b3952f12d607b3f17661c44d --- basic/source/classes/sbunoobj.cxx | 4 ++-- basic/source/inc/sbunoobj.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 2e6aa8f75391..f9938f56e91b 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -4797,9 +4797,9 @@ Any StructRefInfo::getValue() return aRet; } -void StructRefInfo::setValue( const Any& rValue ) +bool StructRefInfo::setValue( const Any& rValue ) { - uno_type_assignData( getInst(), + return uno_type_assignData( getInst(), maType.getTypeLibType(), (void*)rValue.getValue(), rValue.getValueTypeRef(), diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx index aa5c2f981b28..5300e2cba999 100644 --- a/basic/source/inc/sbunoobj.hxx +++ b/basic/source/inc/sbunoobj.hxx @@ -60,7 +60,7 @@ public: bool isEmpty() { return (mnPos == -1); } ::com::sun::star::uno::Any getValue(); - void setValue( const ::com::sun::star::uno::Any& ); + bool setValue( const ::com::sun::star::uno::Any& ); }; class SbUnoStructRefObject: public SbxObject -- cgit