summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-07 11:53:18 +0200
committerMichael Stahl <mstahl@redhat.com>2014-02-12 19:45:10 +0000
commit0c7f35277575fee8594737f5b2842dfac2c6d04f (patch)
tree23ec8864dcdd91dc4c6f4234380bd8f4695131a9 /sc
parentda2efb3e14aa93be13dc4a88f0e41b7dc7948e15 (diff)
remove SvStream::operator>> methods
in favour of ReadXXX methods. Change-Id: Ic2c0a7b6b92ff4c236ae99b39d77f3d935b301e3 Reviewed-on: https://gerrit.libreoffice.org/7915 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/bigrange.hxx2
-rw-r--r--sc/source/filter/inc/formel.hxx12
-rw-r--r--sc/source/filter/inc/lotimpop.hxx18
-rw-r--r--sc/source/filter/inc/xlescher.hxx11
4 files changed, 21 insertions, 22 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx
index 5166d838b2a4..b3010118f0d4 100644
--- a/sc/inc/bigrange.hxx
+++ b/sc/inc/bigrange.hxx
@@ -140,7 +140,7 @@ inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr
inline SvStream& ReadScBigAddress( SvStream& rStream, ScBigAddress& rAdr )
{
- rStream >> rAdr.nCol >> rAdr.nRow >> rAdr.nTab;
+ rStream.ReadInt32( rAdr.nCol ).ReadInt32( rAdr.nRow ).ReadInt32( rAdr.nTab );
return rStream;
}
diff --git a/sc/source/filter/inc/formel.hxx b/sc/source/filter/inc/formel.hxx
index faf61b760c5a..f3970675c960 100644
--- a/sc/source/filter/inc/formel.hxx
+++ b/sc/source/filter/inc/formel.hxx
@@ -146,37 +146,37 @@ inline void LotusConverterBase::Ignore( const long nSeekRel )
inline void LotusConverterBase::Read( sal_Char& nByte )
{
- aIn >> nByte;
+ aIn.ReadChar( nByte );
nBytesLeft--;
}
inline void LotusConverterBase::Read( sal_uInt8& nByte )
{
- aIn >> nByte;
+ aIn.ReadUChar( nByte );
nBytesLeft--;
}
inline void LotusConverterBase::Read( sal_uInt16& nUINT16 )
{
- aIn >> nUINT16;
+ aIn.ReadUInt16( nUINT16 );
nBytesLeft -= 2;
}
inline void LotusConverterBase::Read( sal_Int16& nINT16 )
{
- aIn >> nINT16;
+ aIn.ReadInt16( nINT16 );
nBytesLeft -= 2;
}
inline void LotusConverterBase::Read( double& fDouble )
{
- aIn >> fDouble;
+ aIn.ReadDouble( fDouble );
nBytesLeft -= 8;
}
inline void LotusConverterBase::Read( sal_uInt32& nUINT32 )
{
- aIn >> nUINT32;
+ aIn.ReadUInt32( nUINT32 );
nBytesLeft -= 4;
}
diff --git a/sc/source/filter/inc/lotimpop.hxx b/sc/source/filter/inc/lotimpop.hxx
index ed1c492d79bc..5b7fbe0a11cb 100644
--- a/sc/source/filter/inc/lotimpop.hxx
+++ b/sc/source/filter/inc/lotimpop.hxx
@@ -90,12 +90,12 @@ public:
inline void ImportLotus::Read( ScAddress& rAddr )
{
sal_uInt16 nRow;
- *pIn >> nRow;
+ pIn->ReadUInt16( nRow );
rAddr.SetRow( static_cast<SCROW>(nRow) );
sal_uInt8 nByte;
- *pIn >> nByte;
+ pIn->ReadUChar( nByte );
rAddr.SetTab( static_cast<SCTAB>(nByte) );
- *pIn >> nByte;
+ pIn->ReadUChar( nByte );
rAddr.SetCol( static_cast<SCCOL>(nByte) );
}
@@ -109,31 +109,31 @@ inline void ImportLotus::Read( ScRange& rRange )
inline void ImportLotus::Read( sal_Char& r )
{
- *pIn >> r;
+ pIn->ReadChar( r );
}
inline void ImportLotus::Read( sal_uInt8& r )
{
- *pIn >> r;
+ pIn->ReadUChar( r );
}
inline void ImportLotus::Read( sal_uInt16& r )
{
- *pIn >> r;
+ pIn->ReadUInt16( r );
}
inline void ImportLotus::Read( sal_Int16& r )
{
- *pIn >> r;
+ pIn->ReadInt16( r );
}
inline void ImportLotus::Read( sal_uInt32& r )
{
- *pIn >> r;
+ pIn->ReadUInt32( r );
}
@@ -145,7 +145,7 @@ inline void ImportLotus::Read( double& r )
inline void ImportLotus::Read( LotAttrWK3& r )
{
- *pIn >> r.nFont >> r.nFontCol >> r.nBack >> r.nLineStyle;
+ pIn->ReadUChar( r.nFont ).ReadUChar( r.nFontCol ).ReadUChar( r.nBack ).ReadUChar( r.nLineStyle );
}
diff --git a/sc/source/filter/inc/xlescher.hxx b/sc/source/filter/inc/xlescher.hxx
index 498fb1c3095f..f99c602301e3 100644
--- a/sc/source/filter/inc/xlescher.hxx
+++ b/sc/source/filter/inc/xlescher.hxx
@@ -304,16 +304,15 @@ struct XclObjAnchor : public XclRange
};
-template< typename StreamType >
-StreamType& operator>>( StreamType& rStrm, XclObjAnchor& rAnchor )
+inline SvStream& operator>>( SvStream& rStrm, XclObjAnchor& rAnchor )
{
sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
rStrm
- >> rAnchor.maFirst.mnCol >> rAnchor.mnLX
- >> tmpFirstRow >> tmpTY
- >> rAnchor.maLast.mnCol >> rAnchor.mnRX
- >> tmpLastRow >> tmpBY;
+ .ReadUInt16( rAnchor.maFirst.mnCol ).ReadUInt16( rAnchor.mnLX )
+ .ReadUInt16( tmpFirstRow ).ReadUInt16( tmpTY )
+ .ReadUInt16( rAnchor.maLast.mnCol ).ReadUInt16( rAnchor.mnRX )
+ .ReadUInt16( tmpLastRow ).ReadUInt16( tmpBY );
rAnchor.maFirst.mnRow = static_cast<sal_uInt32> (tmpFirstRow);
rAnchor.mnTY = static_cast<sal_uInt32> (tmpTY);