summaryrefslogtreecommitdiff
path: root/svl/source/items/rngitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/rngitem.cxx')
-rw-r--r--svl/source/items/rngitem.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/items/rngitem.cxx b/svl/source/items/rngitem.cxx
index 9e3154413045..80ac48a7418e 100644
--- a/svl/source/items/rngitem.cxx
+++ b/svl/source/items/rngitem.cxx
@@ -98,8 +98,8 @@ SfxPoolItem* SfxRangeItem::Clone(SfxItemPool *) const
SfxPoolItem* SfxRangeItem::Create(SvStream &rStream, sal_uInt16) const
{
sal_uInt16 nVon(0), nBis(0);
- rStream >> nVon;
- rStream >> nBis;
+ rStream.ReadUInt16( nVon );
+ rStream.ReadUInt16( nBis );
return new SfxRangeItem( Which(), nVon, nBis );
}
@@ -123,10 +123,10 @@ SfxUShortRangesItem::SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream )
: SfxPoolItem( nWID )
{
sal_uInt16 nCount(0);
- rStream >> nCount;
+ rStream.ReadUInt16( nCount );
_pRanges = new sal_uInt16[nCount + 1];
for ( sal_uInt16 n = 0; n < nCount; ++n )
- rStream >> _pRanges[n];
+ rStream.ReadUInt16( _pRanges[n] );
_pRanges[nCount] = 0;
}
@@ -189,9 +189,9 @@ SfxPoolItem* SfxUShortRangesItem::Create( SvStream &rStream, sal_uInt16 ) const
SvStream& SfxUShortRangesItem::Store( SvStream &rStream, sal_uInt16 ) const
{
sal_uInt16 nCount = Count_Impl( _pRanges );
- rStream >> nCount;
+ rStream.ReadUInt16( nCount );
for ( sal_uInt16 n = 0; _pRanges[n]; ++n )
- rStream >> _pRanges[n];
+ rStream.ReadUInt16( _pRanges[n] );
return rStream;
}