diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 14:27:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 16:39:21 +0100 |
commit | d438c470d783c0245231855b20233c5b3e3e691d (patch) | |
tree | ecd5e49e6cfcee5d70950a6776fdd69eb67bbd5f /basic | |
parent | f8ce2e049c54bd68e5afa1632b8b43e43695cddc (diff) |
coverity#1231668 Unchecked return value
Change-Id: Ia7e47b5d42e9a488b3952f12d607b3f17661c44d
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 4 | ||||
-rw-r--r-- | basic/source/inc/sbunoobj.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
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 |