Kaydet (Commit) 9aad6561 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#703952 Unchecked return value

originally return was checked in

commit c37f4bb9
Date:   Tue Nov 4 13:30:21 2003 +0000
    #112739# add breakLink method

then use of bElExists was removed in

commit aec29756
Date:   Fri Nov 14 14:24:28 2003 +0000
    #112923# ole implementation related changes

at which point this line should have been removed, but it wasn't

later at

commit 00b1faf2
Author: Jens-Heiner Rechtien <hr@openoffice.org>
    INTEGRATION: CWS warnings01 (1.19.10); FILE MERGED
    2005/11/03 10:31:40 cd 1.19.10.1: #i55991# Warning free code for gcc

this still wasn't removed, just bElExists commented out

Change-Id: I1af2635558cd4f47da06e148e45489f522e0183f
üst 9863f7db
......@@ -1852,9 +1852,6 @@ void SAL_CALL OCommonEmbeddedObject::breakLink( const uno::Reference< embed::XSt
if ( !xNameAccess.is() )
throw uno::RuntimeException(); //TODO
// detect entry existence
/*sal_Bool bElExists =*/ xNameAccess->hasByName( sEntName );
m_bReadOnly = false;
if ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) )
......
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