summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/gradient.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-14 13:52:54 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-16 16:08:34 +0100
commitc648d0872058941ed18499a8bf1993037d9b5532 (patch)
tree47121b3eff267e34480335130106ca1c33be6fd9 /vcl/source/gdi/gradient.cxx
parent70f360f34a9f6605864644feee3c9b9b6ffb79a1 (diff)
convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
Diffstat (limited to 'vcl/source/gdi/gradient.cxx')
-rw-r--r--vcl/source/gdi/gradient.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index 9ad19b034010..89d3ec182b62 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -306,12 +306,13 @@ SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImpl_Gradient )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const Impl_Gradient& rImpl_Gradient )
+SvStream& WriteImpl_Gradient( SvStream& rOStm, const Impl_Gradient& rImpl_Gradient )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
rOStm.WriteUInt16( (sal_uInt16) rImpl_Gradient.meStyle );
- rOStm << rImpl_Gradient.maStartColor << rImpl_Gradient.maEndColor;
+ WriteColor( rOStm, rImpl_Gradient.maStartColor );
+ WriteColor( rOStm, rImpl_Gradient.maEndColor );
rOStm.WriteUInt16( rImpl_Gradient.mnAngle )
.WriteUInt16( rImpl_Gradient.mnBorder )
.WriteUInt16( rImpl_Gradient.mnOfsX )
@@ -329,9 +330,9 @@ SvStream& operator>>( SvStream& rIStm, Gradient& rGradient )
return( rIStm >> *rGradient.mpImplGradient );
}
-SvStream& operator<<( SvStream& rOStm, const Gradient& rGradient )
+SvStream& WriteGradient( SvStream& rOStm, const Gradient& rGradient )
{
- return( rOStm << *rGradient.mpImplGradient );
+ return WriteImpl_Gradient( rOStm, *rGradient.mpImplGradient );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */