diff options
author | David Tardon <dtardon@redhat.com> | 2011-04-28 07:39:33 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-04-28 07:39:33 +0200 |
commit | 17d640b872e662f2332351e08a0f0392a8fba3b8 (patch) | |
tree | d2440853d2a62ba63a313887ff631ec3591d1e36 /embeddedobj | |
parent | e49fc29521cac5a6c1cb973c4d2a9141b109705e (diff) |
both branches of the if are same
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/olepersist.cxx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index 352748cf4b9f..6fdb2e756f43 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -1820,22 +1820,9 @@ void SAL_CALL OleEmbeddedObject::storeOwn() if ( !xOutStream.is() ) throw io::IOException(); //TODO: access denied - if ( m_bIsLink ) - { - // just let the link store itself - // in case visual repersentation must be stored also - // the procedure should be the same as for embedded objects - - uno::Reference< io::XOutputStream > xOutStream = GetStreamForSaving(); - - // should the component detect that it is a link??? - StoreObjectToStream( xOutStream ); - } - else - { - uno::Reference< io::XOutputStream > xOutStream = GetStreamForSaving(); - StoreObjectToStream( xOutStream ); - } + // TODO: does this work for links too? + uno::Reference< io::XOutputStream > xOutStream = GetStreamForSaving(); + StoreObjectToStream( xOutStream ); // the replacement is changed probably, and it must be in the object stream if ( !m_pOleComponent->IsWorkaroundActive() ) |