summaryrefslogtreecommitdiff
path: root/svl/source/items/cintitem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-08 08:48:26 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-10 13:26:24 +0000
commitb69864f3f8c9be2e1f28f4b422074d2040b084a0 (patch)
tree93d51bc91257472198beffccb92188ceee61667d /svl/source/items/cintitem.cxx
parentde84529b55f5b295b089043a7119d6b0d8b92408 (diff)
re-write SvStream operator<< to non-overloaded methods
This is the actual re-write. Use a clang rewriter to rewrite SvStream::operator<< to methods like WriteuInt32. Note that the rewriter is not perfect, and I hand-tweaked the output. In particular, I had to adjust places doing things like (*this) << 1; Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a Reviewed-on: https://gerrit.libreoffice.org/7342 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svl/source/items/cintitem.cxx')
-rw-r--r--svl/source/items/cintitem.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index c8b35b97bdc6..5cdf1fb45c2e 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -96,7 +96,7 @@ SfxPoolItem * CntByteItem::Create(SvStream & rStream, sal_uInt16) const
SvStream & CntByteItem::Store(SvStream & rStream, sal_uInt16) const
{
DBG_CHKTHIS(CntByteItem, 0);
- rStream << short(m_nValue);
+ rStream.WriteInt16( short(m_nValue) );
return rStream;
}
@@ -215,7 +215,7 @@ SfxPoolItem * CntUInt16Item::Create(SvStream & rStream, sal_uInt16) const
SvStream & CntUInt16Item::Store(SvStream &rStream, sal_uInt16) const
{
DBG_CHKTHIS(CntUInt16Item, 0);
- rStream << sal_uInt16(m_nValue);
+ rStream.WriteUInt16( sal_uInt16(m_nValue) );
return rStream;
}
@@ -331,7 +331,7 @@ SvStream & CntInt32Item::Store(SvStream &rStream, sal_uInt16) const
{
DBG_CHKTHIS(CntInt32Item, 0);
//fdo#39428 SvStream no longer supports operator<<(long)
- rStream << m_nValue;
+ rStream.WriteInt32( m_nValue );
return rStream;
}
@@ -451,7 +451,7 @@ SfxPoolItem * CntUInt32Item::Create(SvStream & rStream, sal_uInt16) const
SvStream & CntUInt32Item::Store(SvStream &rStream, sal_uInt16) const
{
DBG_CHKTHIS(CntUInt32Item, 0);
- rStream << static_cast<sal_uInt32>(m_nValue);
+ rStream.WriteUInt32( static_cast<sal_uInt32>(m_nValue) );
return rStream;
}