diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-30 13:46:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-04 22:50:39 +0000 |
commit | 186b4ebc99a2e80740fee51f9d0276886a003617 (patch) | |
tree | a86a4ff5fe3cd36add7053212ef37531540be253 /vcl/source/gdi/gradient.cxx | |
parent | 95a7e952552adb834f92d1477f83938e7c8d0204 (diff) |
convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types
Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/gdi/gradient.cxx')
-rw-r--r-- | vcl/source/gdi/gradient.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx index 89d3ec182b62..73ca288f8ddf 100644 --- a/vcl/source/gdi/gradient.cxx +++ b/vcl/source/gdi/gradient.cxx @@ -286,16 +286,16 @@ sal_Bool Gradient::operator==( const Gradient& rGradient ) const return sal_False; } -SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImpl_Gradient ) +SvStream& ReadImpl_Gradient( SvStream& rIStm, Impl_Gradient& rImpl_Gradient ) { VersionCompat aCompat( rIStm, STREAM_READ ); sal_uInt16 nTmp16; rIStm >> nTmp16; rImpl_Gradient.meStyle = (GradientStyle) nTmp16; - rIStm >> rImpl_Gradient.maStartColor >> - rImpl_Gradient.maEndColor >> - rImpl_Gradient.mnAngle >> + ReadColor( rIStm, rImpl_Gradient.maStartColor ); + ReadColor( rIStm, rImpl_Gradient.maEndColor ); + rIStm >> rImpl_Gradient.mnAngle >> rImpl_Gradient.mnBorder >> rImpl_Gradient.mnOfsX >> rImpl_Gradient.mnOfsY >> @@ -324,10 +324,10 @@ SvStream& WriteImpl_Gradient( SvStream& rOStm, const Impl_Gradient& rImpl_Gradie return rOStm; } -SvStream& operator>>( SvStream& rIStm, Gradient& rGradient ) +SvStream& ReadGradient( SvStream& rIStm, Gradient& rGradient ) { rGradient.MakeUnique(); - return( rIStm >> *rGradient.mpImplGradient ); + return ReadImpl_Gradient( rIStm, *rGradient.mpImplGradient ); } SvStream& WriteGradient( SvStream& rOStm, const Gradient& rGradient ) |