Kaydet (Commit) 6577e56a authored tarafından Caolán McNamara's avatar Caolán McNamara

const up methods that don't change any state

Change-Id: I844cefad718e5b37dac5657674294a0873b8a8e5
üst db649c52
......@@ -465,7 +465,7 @@ sal_Bool StgStrm::SetSize( sal_Int32 nBytes )
// Return the # of allocated pages
sal_Int32 StgStrm::GetPages()
sal_Int32 StgStrm::GetPages() const
{
return ( nSize + nPageSize - 1 ) / nPageSize;
}
......
......@@ -82,20 +82,20 @@ protected:
public:
virtual ~StgStrm();
StgIo& GetIo() { return rIo; }
sal_Int32 GetPos() { return nPos; }
sal_Int32 GetStart() { return nStart; }
sal_Int32 GetSize() { return nSize; }
sal_Int32 GetPage() { return nPage; }
short GetPageSize() { return nPageSize; }
sal_Int32 GetPages();
short GetOffset() { return nOffset;}
sal_Int32 GetPos() const { return nPos; }
sal_Int32 GetStart() const { return nStart; }
sal_Int32 GetSize() const { return nSize; }
sal_Int32 GetPage() const { return nPage; }
short GetPageSize() const { return nPageSize; }
sal_Int32 GetPages() const;
short GetOffset() const { return nOffset;}
void SetEntry( StgDirEntry& );
virtual sal_Bool SetSize( sal_Int32 );
virtual sal_Bool Pos2Page( sal_Int32 nBytePos );
virtual sal_Int32 Read( void*, sal_Int32 ) { return 0; }
virtual sal_Int32 Write( const void*, sal_Int32 ) { return 0; }
virtual StgPage* GetPhysPage( sal_Int32 nBytePos, sal_Bool bForce = sal_False );
virtual sal_Bool IsSmallStrm() { return sal_False; }
virtual sal_Bool IsSmallStrm() const { return sal_False; }
};
// The FAT stream class provides physical access to the master FAT.
......@@ -145,7 +145,7 @@ public:
StgSmallStrm( StgIo&, StgDirEntry* );
virtual sal_Int32 Read( void*, sal_Int32 );
virtual sal_Int32 Write( const void*, sal_Int32 );
virtual sal_Bool IsSmallStrm() { return sal_True; }
virtual sal_Bool IsSmallStrm() const { return sal_True; }
};
class StgTmpStrm : public SvMemoryStream
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment