summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-04-29 11:37:32 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-04-29 11:37:49 +0300
commitcca12f114ebd908c424421754bb868bfd5dc5227 (patch)
tree73eece8d6d538988a637fd2e53278306eac204d3 /embeddedobj
parent5e259ad384cb38b176ff5b155bec5fdaa47b1ef3 (diff)
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.
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olepersist.cxx3
1 files changed, 1 insertions, 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() )