Kaydet (Commit) c6f2e3e4 authored tarafından Keith McRae's avatar Keith McRae Kaydeden (comit) Kohei Yoshida

fdo#39428 Remove/audit SvStream operator>>/<<(long)

Replaced calls to operator<<(long) with sal::static_int_cast<sal_Int32>
Replaced calls to operator>>(long) with operator>>(sal_Int32)
üst 987eae38
...@@ -301,9 +301,8 @@ CntInt32Item::CntInt32Item(sal_uInt16 which, SvStream & rStream) : ...@@ -301,9 +301,8 @@ CntInt32Item::CntInt32Item(sal_uInt16 which, SvStream & rStream) :
SfxPoolItem(which) SfxPoolItem(which)
{ {
DBG_CTOR(CntInt32Item, 0); DBG_CTOR(CntInt32Item, 0);
long nTheValue = 0; //fdo#39428 SvStream no longer supports operator>>(long&)
rStream >> nTheValue; rStream >> m_nValue;
m_nValue = nTheValue;
} }
//============================================================================ //============================================================================
...@@ -380,7 +379,8 @@ SfxPoolItem * CntInt32Item::Create(SvStream & rStream, sal_uInt16) const ...@@ -380,7 +379,8 @@ SfxPoolItem * CntInt32Item::Create(SvStream & rStream, sal_uInt16) const
SvStream & CntInt32Item::Store(SvStream &rStream, sal_uInt16) const SvStream & CntInt32Item::Store(SvStream &rStream, sal_uInt16) const
{ {
DBG_CHKTHIS(CntInt32Item, 0); DBG_CHKTHIS(CntInt32Item, 0);
rStream << long(m_nValue); //fdo#39428 SvStream no longer supports operator<<(long)
rStream << m_nValue;
return rStream; return rStream;
} }
......
...@@ -89,7 +89,8 @@ SfxStringListItem::SfxStringListItem( sal_uInt16 which, SvStream& rStream ) : ...@@ -89,7 +89,8 @@ SfxStringListItem::SfxStringListItem( sal_uInt16 which, SvStream& rStream ) :
SfxPoolItem( which ), SfxPoolItem( which ),
pImp(NULL) pImp(NULL)
{ {
long nEntryCount; //fdo#39428 SvStream no longer supports operator>>(long&)
sal_Int32 nEntryCount;
rStream >> nEntryCount; rStream >> nEntryCount;
if( nEntryCount ) if( nEntryCount )
...@@ -202,7 +203,8 @@ SvStream& SfxStringListItem::Store( SvStream & rStream, sal_uInt16 ) const ...@@ -202,7 +203,8 @@ SvStream& SfxStringListItem::Store( SvStream & rStream, sal_uInt16 ) const
{ {
if( !pImp ) if( !pImp )
{ {
rStream << 0L; //fdo#39428 SvStream no longer supports operator<<(long)
rStream << (sal_Int32) 0;
return rStream; return rStream;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment