diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 13:05:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 14:48:44 +0000 |
commit | c218eb9d4070811eb5b543317bc4c1ba6252062b (patch) | |
tree | dd638272ae05be0506b4467c489856c0b95e0a18 /svx | |
parent | 6e73260a306b3b711f110f0d36dfbddb6623d102 (diff) |
coverity#1169805 Unchecked return value
Change-Id: I3eef47e4debc6cfde1ef881a3d525f5ec0adf431
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/stbctrls/insctrl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx index 7139d6879e41..8a9c8a6b73e4 100644 --- a/svx/source/stbctrls/insctrl.cxx +++ b/svx/source/stbctrls/insctrl.cxx @@ -79,9 +79,12 @@ void SvxInsertStatusBarControl::Click() SfxBoolItem aIns( GetSlotId(), bInsert ); ::com::sun::star::uno::Any a; + bool bHasValue = aIns.QueryValue( a ); + if (!bHasValue) + return; + ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 ); aArgs[0].Name = "InsertMode"; - aIns.QueryValue( a ); aArgs[0].Value = a; execute( aArgs ); |