diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 16:23:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 09:24:51 +0100 |
commit | 1304a6ae7e60a46a88ded646bb2af8b8f8b926df (patch) | |
tree | a0aa7a3660004b25255d38387063ac70a50942bc /cui | |
parent | 7ed36e0d7beb71667e70dcf256a3a610e839073b (diff) |
coverity#703936 Unchecked return value
Change-Id: I238cdaeab269bcf3ef7a8969ee6077104c12c8a3
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/pastedlg.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index 17468a7779e5..85e49f637b09 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -97,9 +97,11 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, { //TODO/LATER: why is the Descriptor never used?! TransferableObjectDescriptor aDesc; - if( rHelper.HasFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) ) - ((TransferableDataHelper&)rHelper).GetTransferableObjectDescriptor( - SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc ); + if (rHelper.HasFormat(SOT_FORMATSTR_ID_OBJECTDESCRIPTOR)) + { + (void)const_cast<TransferableDataHelper&>(rHelper).GetTransferableObjectDescriptor( + SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc); + } if ( !pFormats ) pFormats = &rHelper.GetDataFlavorExVector(); |