From 17d640b872e662f2332351e08a0f0392a8fba3b8 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 28 Apr 2011 07:39:33 +0200 Subject: both branches of the if are same --- embeddedobj/source/msole/olepersist.cxx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'embeddedobj') 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() ) -- cgit