summaryrefslogtreecommitdiff
path: root/sd/source/core/sdiocmpt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-08 08:48:26 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-10 13:26:24 +0000
commitb69864f3f8c9be2e1f28f4b422074d2040b084a0 (patch)
tree93d51bc91257472198beffccb92188ceee61667d /sd/source/core/sdiocmpt.cxx
parentde84529b55f5b295b089043a7119d6b0d8b92408 (diff)
re-write SvStream operator<< to non-overloaded methods
This is the actual re-write. Use a clang rewriter to rewrite SvStream::operator<< to methods like WriteuInt32. Note that the rewriter is not perfect, and I hand-tweaked the output. In particular, I had to adjust places doing things like (*this) << 1; Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a Reviewed-on: https://gerrit.libreoffice.org/7342 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sd/source/core/sdiocmpt.cxx')
-rw-r--r--sd/source/core/sdiocmpt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/sdiocmpt.cxx b/sd/source/core/sdiocmpt.cxx
index 3fc5a737ff02..ce28ab43f854 100644
--- a/sd/source/core/sdiocmpt.cxx
+++ b/sd/source/core/sdiocmpt.cxx
@@ -46,7 +46,7 @@ void old_SdrDownCompat::Read()
void old_SdrDownCompat::Write()
{
- rStream << nSubRecSiz;
+ rStream.WriteUInt32( nSubRecSiz );
}
void old_SdrDownCompat::OpenSubRecord()
@@ -107,7 +107,7 @@ SdIOCompat::SdIOCompat(SvStream& rNewStream, sal_uInt16 nNewMode, sal_uInt16 nVe
{
DBG_ASSERT(nVer != SDIOCOMPAT_VERSIONDONTKNOW,
"canĀ“t write unknown version");
- rNewStream << nVersion;
+ rNewStream.WriteUInt16( nVersion );
}
else if (nNewMode == STREAM_READ)
{