diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 10:50:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 11:38:22 +0000 |
commit | 618171552e1bcddb07660167d9df4512435269b0 (patch) | |
tree | 24663a06258318d8ab0d57d1e6f676e4afdebcdc /sot | |
parent | a6628078a929a39a95ae8b2f51348996dc41afbc (diff) |
loplugin:expandablemethods in sot..starmath
Change-Id: I5b718bbda9ceca5bbfd1e6482ebd215e15884956
Reviewed-on: https://gerrit.libreoffice.org/30318
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.hxx | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index 55f91f12bbb2..2ee2c28ede39 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -274,7 +274,7 @@ void StgCache::SetStrm( UCBStorageStream* pStgStream ) void StgCache::SetDirty( const rtl::Reference< StgPage > &rPage ) { - assert( IsWritable() ); + assert( m_pStrm && m_pStrm->IsWritable() ); maDirtyPages[ rPage->GetPage() ] = rPage; } diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index 0fafeba2abcc..5a1ec3809607 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -70,7 +70,6 @@ public: SvStream* GetStrm() { return m_pStrm; } void SetStrm( SvStream*, bool ); void SetStrm( UCBStorageStream* ); - bool IsWritable() const { return ( m_pStrm && m_pStrm->IsWritable() ); } bool Good() const { return m_nError == SVSTREAM_OK; } ErrCode GetError() { return m_nError; } void MoveError( StorageBase& ); |