summaryrefslogtreecommitdiff
path: root/tools/source/generic/poly.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-05 10:41:04 +0200
committerMichael Stahl <mstahl@redhat.com>2014-02-12 15:31:40 +0000
commit15535e32ddcfee451d4dbc9be9de0b8c9f9d78d4 (patch)
treedb4badc477cea1ecd51f5fab82ce0f24ae20f155 /tools/source/generic/poly.cxx
parent7accbd8c0d7f1d0b87748f0de599c4d8b469a61e (diff)
convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion. Then I lightly hand-tweaked the output for the few places where the rewriter messed up, mostly when dealing with calls on "this". Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9 Reviewed-on: https://gerrit.libreoffice.org/7879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools/source/generic/poly.cxx')
-rw-r--r--tools/source/generic/poly.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 2da3bb396694..3a25b9b7796d 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1509,7 +1509,7 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
sal_uInt16 nPoints;
// read all points and create array
- rIStream >> nPoints;
+ rIStream.ReadUInt16( nPoints );
if ( rPoly.mpImplPolygon->mnRefCount != 1 )
{
if ( rPoly.mpImplPolygon->mnRefCount )
@@ -1535,7 +1535,7 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
{
//fdo#39428 SvStream no longer supports operator>>(long&)
sal_Int32 nTmpX(0), nTmpY(0);
- rIStream >> nTmpX >> nTmpY;
+ rIStream.ReadInt32( nTmpX ).ReadInt32( nTmpY );
rPoly.mpImplPolygon->mpPointAry[i].X() = nTmpX;
rPoly.mpImplPolygon->mpPointAry[i].Y() = nTmpY;
}
@@ -1591,7 +1591,7 @@ void Polygon::ImplRead( SvStream& rIStream )
sal_uInt8 bHasPolyFlags;
ReadPolygon( rIStream, *this );
- rIStream >> bHasPolyFlags;
+ rIStream.ReadUChar( bHasPolyFlags );
if ( bHasPolyFlags )
{