summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgelem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-14 13:52:54 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-16 16:08:34 +0100
commitc648d0872058941ed18499a8bf1993037d9b5532 (patch)
tree47121b3eff267e34480335130106ca1c33be6fd9 /sot/source/sdstor/stgelem.cxx
parent70f360f34a9f6605864644feee3c9b9b6ffb79a1 (diff)
convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
Diffstat (limited to 'sot/source/sdstor/stgelem.cxx')
-rw-r--r--sot/source/sdstor/stgelem.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index 46083e0ee462..0b10719312e9 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -51,7 +51,7 @@ SvStream& operator >>( SvStream& r, ClsId& rId )
return r;
}
-SvStream& operator <<( SvStream& r, const ClsId& rId )
+SvStream& WriteClsId( SvStream& r, const ClsId& rId )
{
return
r .WriteInt32( (sal_Int32) rId.n1 )
@@ -159,7 +159,7 @@ bool StgHeader::Store( StgIo& rIo )
SvStream& r = *rIo.GetStrm();
r.Seek( 0L );
r.Write( cSignature, 8 );
- r << aClsId; // 08 Class ID
+ WriteClsId( r, aClsId ); // 08 Class ID
r.WriteInt32( nVersion ) // 1A version number
.WriteUInt16( nByteOrder ) // 1C Unicode byte order indicator
.WriteInt16( nPageSize ) // 1E 1 << nPageSize = block size
@@ -427,7 +427,7 @@ void StgEntry::Store( void* pTo )
.WriteInt32( nLeft ) // 44 left node entry
.WriteInt32( nRight ) // 48 right node entry
.WriteInt32( nChild ); // 4C 1st child entry if storage;
- r << aClsId; // 50 class ID (optional)
+ WriteClsId( r, aClsId ); // 50 class ID (optional)
r.WriteInt32( nFlags ) // 60 state flags(?)
.WriteInt32( nMtime[ 0 ] ) // 64 modification time
.WriteInt32( nMtime[ 1 ] ) // 64 modification time