diff options
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/imap3.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/templatefoldercache.cxx | 20 | ||||
-rw-r--r-- | svtools/source/misc/transfer.cxx | 14 |
3 files changed, 18 insertions, 18 deletions
diff --git a/svtools/source/misc/imap3.cxx b/svtools/source/misc/imap3.cxx index 7ee8fcb98de6..aecafea392fa 100644 --- a/svtools/source/misc/imap3.cxx +++ b/svtools/source/misc/imap3.cxx @@ -68,7 +68,7 @@ IMapCompat::~IMapCompat() const sal_uLong nEndPos = pRWStm->Tell(); pRWStm->Seek( nCompatPos ); - *pRWStm << (sal_uInt32) ( nEndPos - nTotalSize ); + pRWStm->WriteUInt32( (sal_uInt32) ( nEndPos - nTotalSize ) ); pRWStm->Seek( nEndPos ); } else diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx index f7e64fe1aa81..a1a7b29a7139 100644 --- a/svtools/source/misc/templatefoldercache.cxx +++ b/svtools/source/misc/templatefoldercache.cxx @@ -59,14 +59,14 @@ namespace svt SvStream& operator << ( SvStream& _rStorage, const util::DateTime& _rDate ) { sal_uInt16 hundredthSeconds = static_cast< sal_uInt16 >( _rDate.NanoSeconds / Time::nanoPerCenti ); - _rStorage << hundredthSeconds; + _rStorage.WriteUInt16( hundredthSeconds ); - _rStorage << _rDate.Seconds; - _rStorage << _rDate.Minutes; - _rStorage << _rDate.Hours; - _rStorage << _rDate.Day; - _rStorage << _rDate.Month; - _rStorage << _rDate.Year; + _rStorage.WriteUInt16( _rDate.Seconds ); + _rStorage.WriteUInt16( _rDate.Minutes ); + _rStorage.WriteUInt16( _rDate.Hours ); + _rStorage.WriteUInt16( _rDate.Day ); + _rStorage.WriteUInt16( _rDate.Month ); + _rStorage.WriteInt16( _rDate.Year ); return _rStorage; } @@ -357,7 +357,7 @@ namespace svt // store the info about the children // the number - m_rStorage << (sal_Int32)_rContent.size(); + m_rStorage.WriteInt32( (sal_Int32)_rContent.size() ); // their URLs ( the local name is not enough, since URL might be not a hierarchical one, "expand:" for example ) ::std::for_each( _rContent.getSubContents().begin(), @@ -559,11 +559,11 @@ namespace svt if ( m_bValidCurrentState && openCacheStream( sal_False ) ) { - *m_pCacheStream << getMagicNumber(); + m_pCacheStream->WriteInt32( getMagicNumber() ); // store the template root folders // the size - *m_pCacheStream << (sal_Int32)m_aCurrentState.size(); + m_pCacheStream->WriteInt32( (sal_Int32)m_aCurrentState.size() ); // the complete URLs ::std::for_each( m_aCurrentState.begin(), diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 3e3693dc6f40..f4006c6517ee 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -121,20 +121,20 @@ SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjD rOStm.SeekRel( 4 ); rOStm << rObjDesc.maClassName; - rOStm << nViewAspect; + rOStm.WriteUInt32( nViewAspect ); //#fdo39428 Remove SvStream operator<<(long) - rOStm << sal::static_int_cast<sal_Int32>(rObjDesc.maSize.Width()); - rOStm << sal::static_int_cast<sal_Int32>(rObjDesc.maSize.Height()); - rOStm << sal::static_int_cast<sal_Int32>(rObjDesc.maDragStartPos.X()); - rOStm << sal::static_int_cast<sal_Int32>(rObjDesc.maDragStartPos.Y()); + rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rObjDesc.maSize.Width()) ); + rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rObjDesc.maSize.Height()) ); + rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rObjDesc.maDragStartPos.X()) ); + rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rObjDesc.maDragStartPos.Y()) ); rOStm.WriteUniOrByteString( rObjDesc.maTypeName, osl_getThreadTextEncoding() ); rOStm.WriteUniOrByteString( rObjDesc.maDisplayName, osl_getThreadTextEncoding() ); - rOStm << nSig1 << nSig2; + rOStm.WriteUInt32( nSig1 ).WriteUInt32( nSig2 ); const sal_uInt32 nLastPos = rOStm.Tell(); rOStm.Seek( nFirstPos ); - rOStm << ( nLastPos - nFirstPos ); + rOStm.WriteUInt32( nLastPos - nFirstPos ); rOStm.Seek( nLastPos ); return rOStm; |