diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-14 13:52:54 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-01-16 16:08:34 +0100 |
commit | c648d0872058941ed18499a8bf1993037d9b5532 (patch) | |
tree | 47121b3eff267e34480335130106ca1c33be6fd9 /sc/inc/bigrange.hxx | |
parent | 70f360f34a9f6605864644feee3c9b9b6ffb79a1 (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 'sc/inc/bigrange.hxx')
-rw-r--r-- | sc/inc/bigrange.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx index 8db2b3460f8b..89fb675c6977 100644 --- a/sc/inc/bigrange.hxx +++ b/sc/inc/bigrange.hxx @@ -71,11 +71,12 @@ public: bool operator!=( const ScBigAddress& r ) const { return !operator==( r ); } - friend inline SvStream& operator<< ( SvStream& rStream, const ScBigAddress& rAdr ); + friend inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr ); friend inline SvStream& operator>> ( SvStream& rStream, ScBigAddress& rAdr ); }; + inline void ScBigAddress::PutInOrder( ScBigAddress& r ) { sal_Int32 nTmp; @@ -130,7 +131,7 @@ inline ScAddress ScBigAddress::MakeAddress() const } -inline SvStream& operator<< ( SvStream& rStream, const ScBigAddress& rAdr ) +inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr ) { rStream << rAdr.nCol << rAdr.nRow << rAdr.nTab; return rStream; @@ -196,7 +197,7 @@ public: bool operator!=( const ScBigRange& r ) const { return !operator==( r ); } - friend inline SvStream& operator<< ( SvStream& rStream, const ScBigRange& rRange ); + friend inline SvStream& WriteScBigRange ( SvStream& rStream, const ScBigRange& rRange ); friend inline SvStream& operator>> ( SvStream& rStream, ScBigRange& rRange ); }; @@ -229,10 +230,10 @@ inline sal_Bool ScBigRange::Intersects( const ScBigRange& r ) const } -inline SvStream& operator<< ( SvStream& rStream, const ScBigRange& rRange ) +inline SvStream& WriteScBigRange ( SvStream& rStream, const ScBigRange& rRange ) { - rStream << rRange.aStart; - rStream << rRange.aEnd; + WriteScBigAddress( rStream, rRange.aStart ); + WriteScBigAddress( rStream, rRange.aEnd ); return rStream; } |