summaryrefslogtreecommitdiff
path: root/tools/source/generic/gen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/gen.cxx')
-rw-r--r--tools/source/generic/gen.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index b011a90e3578..a0c74b5c3713 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -39,7 +39,7 @@ SvStream& operator<<( SvStream& rOStream, const Pair& rPair )
DBG_ASSERTWARNING( rOStream.GetVersion(), "Pair::<< - Solar-Version not set on rOStream" );
//39428 SvStream no longer supports operator<<(long)
- rOStream << sal::static_int_cast<sal_Int32>(rPair.nA) << sal::static_int_cast<sal_Int32>(rPair.nB);
+ rOStream.WriteInt32( sal::static_int_cast<sal_Int32>(rPair.nA) ).WriteInt32( sal::static_int_cast<sal_Int32>(rPair.nB) );
return rOStream;
}
@@ -191,10 +191,10 @@ SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect )
DBG_ASSERTWARNING( rOStream.GetVersion(), "Rectangle::<< - Solar-Version not set on rOStream" );
//fdo#39428 SvStream no longer supports operator<<(long)
- rOStream << sal::static_int_cast<sal_Int32>(rRect.nLeft)
- << sal::static_int_cast<sal_Int32>(rRect.nTop)
- << sal::static_int_cast<sal_Int32>(rRect.nRight)
- << sal::static_int_cast<sal_Int32>(rRect.nBottom);
+ rOStream.WriteInt32( sal::static_int_cast<sal_Int32>(rRect.nLeft) )
+ .WriteInt32( sal::static_int_cast<sal_Int32>(rRect.nTop) )
+ .WriteInt32( sal::static_int_cast<sal_Int32>(rRect.nRight) )
+ .WriteInt32( sal::static_int_cast<sal_Int32>(rRect.nBottom) );
return rOStream;
}