From 6f1030e84a293387bc92b020afd326d85423396f Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 22 Jul 2003 10:12:58 +0000 Subject: INTEGRATION: CWS fwkrc32 (1.3.30); FILE MERGED 2003/07/15 16:22:20 mav 1.3.30.1: #i16015# close UCBStorageStream in case Storage based on it is deleted --- sot/source/sdstor/stgcache.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index 3478c4d92ea2..78ba00838277 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -2,9 +2,9 @@ * * $RCSfile: stgcache.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-03-27 11:47:56 $ + * last change: $Author: vg $ $Date: 2003-07-22 11:12:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -73,6 +73,7 @@ #include #endif +class UCBStorageStream; class StgIo; class StgPage; @@ -87,6 +88,8 @@ class StgCache { USHORT nRef; // reference count void * pLRUCache; // hash table of cached objects short nPageSize; // page size of the file + UCBStorageStream* pStorageStream; // holds reference to UCB storage stream + void Erase( StgPage* ); // delete a cache element void InsertToLRU( StgPage* ); // insert into LRU list void InsertToOrdered( StgPage* ); // insert into ordered list @@ -107,6 +110,7 @@ public: short GetPhysPageSize() { return nPageSize; } SvStream* GetStrm() { return pStrm; } void SetStrm( SvStream*, BOOL ); + void SetStrm( UCBStorageStream* ); BOOL IsWritable() { return pStrm->IsWritable(); } BOOL Good() { return BOOL( nError == SVSTREAM_OK ); } BOOL Bad() { return BOOL( nError != SVSTREAM_OK ); } -- cgit