summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-08 21:53:40 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-09 08:05:48 +0200
commit4bc78704fed3a5fd52668ca678212f6b9e8d0eac (patch)
treec8a1320e324d64fef3f1cc5ed63a05f083554eee /sot/source
parent6759a5a0af782d28ae7497613cc8360951594073 (diff)
sot: prefix members of StgTmpStrm
Change-Id: I08698db954f33d934f601bf25e510e6f4bea8d78
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/sdstor/stgstrms.cxx56
-rw-r--r--sot/source/sdstor/stgstrms.hxx4
2 files changed, 30 insertions, 30 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index b813a360b9f7..8eb66913e099 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1116,7 +1116,7 @@ StgTmpStrm::StgTmpStrm( sal_uLong nInitSize )
? 16
: ( nInitSize ? nInitSize : 16 ), 4096 )
{
- pStrm = NULL;
+ m_pStrm = NULL;
// this calls FlushData, so all members should be set by this time
SetBufferSize( 0 );
if( nInitSize > THRESHOLD )
@@ -1155,22 +1155,22 @@ bool StgTmpStrm::Copy( StgTmpStrm& rSrc )
StgTmpStrm::~StgTmpStrm()
{
- if( pStrm )
+ if( m_pStrm )
{
- pStrm->Close();
- osl::File::remove( aName );
- delete pStrm;
+ m_pStrm->Close();
+ osl::File::remove( m_aName );
+ delete m_pStrm;
}
}
sal_uLong StgTmpStrm::GetSize() const
{
sal_uLong n;
- if( pStrm )
+ if( m_pStrm )
{
- sal_uLong old = pStrm->Tell();
- n = pStrm->Seek( STREAM_SEEK_TO_END );
- pStrm->Seek( old );
+ sal_uLong old = m_pStrm->Tell();
+ n = m_pStrm->Seek( STREAM_SEEK_TO_END );
+ m_pStrm->Seek( old );
}
else
n = nEndOfData;
@@ -1179,14 +1179,14 @@ sal_uLong StgTmpStrm::GetSize() const
void StgTmpStrm::SetSize(sal_uInt64 n)
{
- if( pStrm )
- pStrm->SetStreamSize( n );
+ if( m_pStrm )
+ m_pStrm->SetStreamSize( n );
else
{
if( n > THRESHOLD )
{
- aName = utl::TempFile(0, false).GetURL();
- SvFileStream* s = new SvFileStream( aName, STREAM_READWRITE );
+ m_aName = utl::TempFile(0, false).GetURL();
+ SvFileStream* s = new SvFileStream( m_aName, STREAM_READWRITE );
sal_uLong nCur = Tell();
sal_uLong i = nEndOfData;
std::unique_ptr<sal_uInt8[]> p(new sal_uInt8[ 4096 ]);
@@ -1231,7 +1231,7 @@ void StgTmpStrm::SetSize(sal_uInt64 n)
delete s;
return;
}
- pStrm = s;
+ m_pStrm = s;
// Shrink the memory to 16 bytes, which seems to be the minimum
ReAllocateMemory( - ( (long) nEndOfData - 16 ) );
}
@@ -1249,10 +1249,10 @@ void StgTmpStrm::SetSize(sal_uInt64 n)
sal_uLong StgTmpStrm::GetData( void* pData, sal_uLong n )
{
- if( pStrm )
+ if( m_pStrm )
{
- n = pStrm->Read( pData, n );
- SetError( pStrm->GetError() );
+ n = m_pStrm->Read( pData, n );
+ SetError( m_pStrm->GetError() );
return n;
}
else
@@ -1263,16 +1263,16 @@ sal_uLong StgTmpStrm::PutData( const void* pData, sal_uLong n )
{
sal_uInt32 nCur = Tell();
sal_uInt32 nNew = nCur + n;
- if( nNew > THRESHOLD && !pStrm )
+ if( nNew > THRESHOLD && !m_pStrm )
{
SetSize( nNew );
if( GetError() != SVSTREAM_OK )
return 0;
}
- if( pStrm )
+ if( m_pStrm )
{
- nNew = pStrm->Write( pData, n );
- SetError( pStrm->GetError() );
+ nNew = m_pStrm->Write( pData, n );
+ SetError( m_pStrm->GetError() );
}
else
nNew = SvMemoryStream::PutData( pData, n );
@@ -1285,7 +1285,7 @@ sal_uInt64 StgTmpStrm::SeekPos(sal_uInt64 n)
assert(n != SAL_MAX_UINT32);
if( n == STREAM_SEEK_TO_END )
n = GetSize();
- if( n && n > THRESHOLD && !pStrm )
+ if( n && n > THRESHOLD && !m_pStrm )
{
SetSize( n );
if( GetError() != SVSTREAM_OK )
@@ -1293,10 +1293,10 @@ sal_uInt64 StgTmpStrm::SeekPos(sal_uInt64 n)
else
return n;
}
- else if( pStrm )
+ else if( m_pStrm )
{
- n = pStrm->Seek( n );
- SetError( pStrm->GetError() );
+ n = m_pStrm->Seek( n );
+ SetError( m_pStrm->GetError() );
return n;
}
else
@@ -1305,10 +1305,10 @@ sal_uInt64 StgTmpStrm::SeekPos(sal_uInt64 n)
void StgTmpStrm::FlushData()
{
- if( pStrm )
+ if( m_pStrm )
{
- pStrm->Flush();
- SetError( pStrm->GetError() );
+ m_pStrm->Flush();
+ SetError( m_pStrm->GetError() );
}
else
SvMemoryStream::FlushData();
diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx
index 1e46e69d6f43..61a33160f194 100644
--- a/sot/source/sdstor/stgstrms.hxx
+++ b/sot/source/sdstor/stgstrms.hxx
@@ -142,8 +142,8 @@ public:
class StgTmpStrm : public SvMemoryStream
{
- OUString aName;
- SvFileStream* pStrm;
+ OUString m_aName;
+ SvFileStream* m_pStrm;
using SvMemoryStream::GetData;
virtual sal_uLong GetData( void* pData, sal_uLong nSize ) SAL_OVERRIDE;
virtual sal_uLong PutData( const void* pData, sal_uLong nSize ) SAL_OVERRIDE;