summaryrefslogtreecommitdiffstats
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-23 11:52:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-23 13:28:10 +0200
commit810eed8646eacd665004d95359f21ce5e23fc795 (patch)
tree9794fde9b1457d6bd57e788d35e5c62a6ede6f8e /sot
parentloplugin:unnecessaryparen (diff)
downloadcore-810eed8646eacd665004d95359f21ce5e23fc795.tar.gz
core-810eed8646eacd665004d95359f21ce5e23fc795.zip
make some fields in StgCache private
Change-Id: Ia44131f2ebee0c162b05c8019cf3600181aea5e0 Reviewed-on: https://gerrit.libreoffice.org/57842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgcache.hxx2
-rw-r--r--sot/source/sdstor/stgio.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx
index b4262c80a1bc..f0bd2e1d25a3 100644
--- a/sot/source/sdstor/stgcache.hxx
+++ b/sot/source/sdstor/stgcache.hxx
@@ -56,9 +56,9 @@ class StgCache
void Erase( const rtl::Reference< StgPage >& ); // delete a cache element
rtl::Reference< StgPage > Create( sal_Int32 ); // create a cached page
-protected:
SvStream* m_pStrm; // physical stream
bool m_bMyStream; // true: delete stream in dtor
+protected:
bool m_bFile; // true: file stream
sal_Int32 Page2Pos( sal_Int32 ) const; // page address --> file position
public:
diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx
index a7e8863c6efd..e05460f4ae39 100644
--- a/sot/source/sdstor/stgio.cxx
+++ b/sot/source/sdstor/stgio.cxx
@@ -54,7 +54,7 @@ StgIo::~StgIo()
bool StgIo::Load()
{
- if( m_pStrm )
+ if( GetStrm() )
{
if( m_aHdr.Load( *this ) )
{
@@ -141,8 +141,8 @@ bool StgIo::CommitAll()
m_aHdr.SetTOCStart( m_pTOC->GetStart() );
if( m_aHdr.Store( *this ) )
{
- m_pStrm->Flush();
- const ErrCode n = m_pStrm->GetError();
+ GetStrm()->Flush();
+ const ErrCode n = GetStrm()->GetError();
SetError( n );
#ifdef DBG_UTIL
if( n==ERRCODE_NONE ) ValidateFATs();