summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-09-18 11:08:28 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-09-18 11:08:28 +0000
commitd17a75a07921ef6dec1101ddec888972907f1850 (patch)
tree8d856b5653002b9647212af7593eb3c220a6fed7
parent428582adc34ec005b2351b15815845d2ca62c943 (diff)
#102676# use forcing for UCBStorages
-rw-r--r--sot/source/sdstor/storage.cxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index b38bfb76fe02..e26a5cdca3bc 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: storage.cxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: mba $ $Date: 2002-09-12 15:09:06 $
+ * last change: $Author: mav $ $Date: 2002-09-18 12:08:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -543,6 +543,9 @@ SotStorage::SotStorage( const ::ucb::Content& rContent, const String & rName, St
{
aName = rName; // Namen merken
pOwnStg = new UCBStorage( rContent, aName, nMode, (nStorageMode & STORAGE_TRANSACTED) ? FALSE : TRUE );
+
+ SetError( pOwnStg->GetError() );
+
if ( IsOLEStorage() )
nVersion = SOFFICE_FILEFORMAT_50;
@@ -656,8 +659,8 @@ void SotStorage::CreateStorage( BOOL bForceUCBStorage, StreamMode nMode, Storage
aName = pOwnStg->GetName();
}
- ULONG nErr = pOwnStg->GetError();
- SetError( nErr );
+ SetError( pOwnStg->GetError() );
+
SignAsRoot( pOwnStg->IsRoot() );
}
@@ -697,6 +700,9 @@ SotStorage::SotStorage( BOOL bUCBStorage, SvStream & rStm )
pOwnStg = new UCBStorage( rStm, FALSE );
else
pOwnStg = new Storage( rStm, FALSE );
+
+ SetError( pOwnStg->GetError() );
+
if ( IsOLEStorage() )
nVersion = SOFFICE_FILEFORMAT_50;
@@ -713,6 +719,9 @@ SotStorage::SotStorage( SvStream & rStm )
pOwnStg = new UCBStorage( rStm, FALSE );
else
pOwnStg = new Storage( rStm, FALSE );
+
+ SetError( pOwnStg->GetError() );
+
if ( IsOLEStorage() )
nVersion = SOFFICE_FILEFORMAT_50;
@@ -730,9 +739,7 @@ SotStorage::SotStorage( SvStream * pStm, BOOL bDelete )
else
pOwnStg = new Storage( *pStm, FALSE );
- ULONG nError = pOwnStg->GetError();
- if ( nError != SVSTREAM_OK )
- SetError( nError );
+ SetError( pOwnStg->GetError() );
pStorStm = pStm;
bDelStm = bDelete;