Kaydet (Commit) 1304a6ae authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#703936 Unchecked return value

Change-Id: I238cdaeab269bcf3ef7a8969ee6077104c12c8a3
üst 7ed36e0d
...@@ -97,9 +97,11 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, ...@@ -97,9 +97,11 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
{ {
//TODO/LATER: why is the Descriptor never used?! //TODO/LATER: why is the Descriptor never used?!
TransferableObjectDescriptor aDesc; TransferableObjectDescriptor aDesc;
if( rHelper.HasFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) ) if (rHelper.HasFormat(SOT_FORMATSTR_ID_OBJECTDESCRIPTOR))
((TransferableDataHelper&)rHelper).GetTransferableObjectDescriptor( {
SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc ); (void)const_cast<TransferableDataHelper&>(rHelper).GetTransferableObjectDescriptor(
SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc);
}
if ( !pFormats ) if ( !pFormats )
pFormats = &rHelper.GetDataFlavorExVector(); pFormats = &rHelper.GetDataFlavorExVector();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment