summaryrefslogtreecommitdiff
path: root/svl/source/items/cintitem.cxx
diff options
context:
space:
mode:
authorKeith McRae <keithcoder@gmail.com>2012-01-18 16:11:29 +0000
committerKohei Yoshida <kohei.yoshida@suse.com>2012-01-18 22:56:13 -0500
commitc6f2e3e46db30e0d7e4f53270ceda6d4b9c8f955 (patch)
tree11d76289129f594e2c83149473e7ced57d7ba715 /svl/source/items/cintitem.cxx
parent987eae381d5c276ce239482d1cb79ecf53c015d8 (diff)
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)
Diffstat (limited to 'svl/source/items/cintitem.cxx')
-rw-r--r--svl/source/items/cintitem.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index 065c0b0d058a..2ae7c4714557 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -301,9 +301,8 @@ CntInt32Item::CntInt32Item(sal_uInt16 which, SvStream & rStream) :
SfxPoolItem(which)
{
DBG_CTOR(CntInt32Item, 0);
- long nTheValue = 0;
- rStream >> nTheValue;
- m_nValue = nTheValue;
+ //fdo#39428 SvStream no longer supports operator>>(long&)
+ rStream >> m_nValue;
}
//============================================================================
@@ -380,7 +379,8 @@ SfxPoolItem * CntInt32Item::Create(SvStream & rStream, sal_uInt16) const
SvStream & CntInt32Item::Store(SvStream &rStream, sal_uInt16) const
{
DBG_CHKTHIS(CntInt32Item, 0);
- rStream << long(m_nValue);
+ //fdo#39428 SvStream no longer supports operator<<(long)
+ rStream << m_nValue;
return rStream;
}