From cca12f114ebd908c424421754bb868bfd5dc5227 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 29 Apr 2011 11:37:32 +0300 Subject: [PATCH] Fix compilation error Avoid temporary variable that was moved from a nested block in previous commit, but had the same name as a variable alredy existing in this block. --- embeddedobj/source/msole/olepersist.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index 6fdb2e756f43..4aec3eafd7a7 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -1821,8 +1821,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn() throw io::IOException(); //TODO: access denied // TODO: does this work for links too? - uno::Reference< io::XOutputStream > xOutStream = GetStreamForSaving(); - StoreObjectToStream( xOutStream ); + StoreObjectToStream( GetStreamForSaving() ); // the replacement is changed probably, and it must be in the object stream if ( !m_pOleComponent->IsWorkaroundActive() )