summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-28 12:03:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-28 15:06:33 +0000
commit98b83c6a292c184f69b55e114c30212591884d0a (patch)
treedca9e7dee0cb3ffac12f35f15a43056eec835a61
parentbdec3d22b6b9cb7fb3fcf36377ab4a393ccb18b3 (diff)
coverity#704067 Unchecked return value
and coverity#704068 Unchecked return value those are ok I think Change-Id: I7869c3f4200792d4bafafdff49735e8563d2e822
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 14ce7d61f2a6..bf500429d506 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -2925,8 +2925,10 @@ bool SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rDat
else
{
if( rData.HasFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) )
- rData.GetTransferableObjectDescriptor(
+ {
+ (void)rData.GetTransferableObjectDescriptor(
SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc );
+ }
if( SwTransferable::_TestAllowedFormat( rData, SOT_FORMATSTR_ID_EMBED_SOURCE, nDest ))
pDlg->Insert( SOT_FORMATSTR_ID_EMBED_SOURCE, aEmptyOUStr );
@@ -2978,9 +2980,11 @@ void SwTransferable::FillClipFmtItem( const SwWrtShell& rSh,
else
{
TransferableObjectDescriptor aDesc;
- if( rData.HasFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) )
- ((TransferableDataHelper&)rData).GetTransferableObjectDescriptor(
- SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc );
+ if (rData.HasFormat(SOT_FORMATSTR_ID_OBJECTDESCRIPTOR))
+ {
+ (void)const_cast<TransferableDataHelper&>(rData).GetTransferableObjectDescriptor(
+ SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc);
+ }
if( SwTransferable::_TestAllowedFormat( rData, SOT_FORMATSTR_ID_EMBED_SOURCE, nDest ))
rToFill.AddClipbrdFormat( SOT_FORMATSTR_ID_EMBED_SOURCE,