diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/storage.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 338b5dbc33d8..42ef1430ba05 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: storage.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: hr $ $Date: 2004-04-13 12:21:52 $ + * last change: $Author: hr $ $Date: 2004-05-10 18:10:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -832,10 +832,9 @@ uno::Reference< embed::XStorage > SotStorage::GetUNOAPIDuplicate( const String& if ( GetError() == ERRCODE_NONE ) { - StreamMode nMode = ( ( nUNOStorageMode & embed::ElementModes::ELEMENT_WRITE ) == embed::ElementModes::ELEMENT_WRITE ) ? - STREAM_WRITE : STREAM_READ | STREAM_NOCREATE; - - if ( nUNOStorageMode & embed::ElementModes::ELEMENT_NOCREATE ) + StreamMode nMode = ( ( nUNOStorageMode & embed::ElementModes::WRITE ) == embed::ElementModes::WRITE ) ? + STREAM_WRITE : ( STREAM_READ | STREAM_NOCREATE ); + if ( nUNOStorageMode & embed::ElementModes::NOCREATE ) nMode |= STREAM_NOCREATE; sal_Bool bStorageReady = !IsStorage( rEleName ); |