diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-08 08:48:26 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-01-10 13:26:24 +0000 |
commit | b69864f3f8c9be2e1f28f4b422074d2040b084a0 (patch) | |
tree | 93d51bc91257472198beffccb92188ceee61667d /vcl/source/gdi/regionband.cxx | |
parent | de84529b55f5b295b089043a7119d6b0d8b92408 (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 'vcl/source/gdi/regionband.cxx')
-rw-r--r-- | vcl/source/gdi/regionband.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx index 9e07a12e6fc3..a1366adbadd5 100644 --- a/vcl/source/gdi/regionband.cxx +++ b/vcl/source/gdi/regionband.cxx @@ -269,9 +269,9 @@ void RegionBand::save(SvStream& rOStrm) const while(pBand) { // put boundaries - rOStrm << (sal_uInt16)STREAMENTRY_BANDHEADER; - rOStrm << static_cast<sal_Int32>(pBand->mnYTop); - rOStrm << static_cast<sal_Int32>(pBand->mnYBottom); + rOStrm.WriteUInt16( (sal_uInt16)STREAMENTRY_BANDHEADER ); + rOStrm.WriteInt32( static_cast<sal_Int32>(pBand->mnYTop) ); + rOStrm.WriteInt32( static_cast<sal_Int32>(pBand->mnYBottom) ); // put separations of current band ImplRegionBandSep* pSep = pBand->mpFirstSep; @@ -279,9 +279,9 @@ void RegionBand::save(SvStream& rOStrm) const while(pSep) { // put separation - rOStrm << (sal_uInt16)STREAMENTRY_SEPARATION; - rOStrm << static_cast<sal_Int32>(pSep->mnXLeft); - rOStrm << static_cast<sal_Int32>(pSep->mnXRight); + rOStrm.WriteUInt16( (sal_uInt16)STREAMENTRY_SEPARATION ); + rOStrm.WriteInt32( static_cast<sal_Int32>(pSep->mnXLeft) ); + rOStrm.WriteInt32( static_cast<sal_Int32>(pSep->mnXRight) ); // next separation from current band pSep = pSep->mpNextSep; @@ -291,7 +291,7 @@ void RegionBand::save(SvStream& rOStrm) const } // put endmarker - rOStrm << (sal_uInt16)STREAMENTRY_END; + rOStrm.WriteUInt16( (sal_uInt16)STREAMENTRY_END ); } bool RegionBand::isSingleRectangle() const |