summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-16 18:42:23 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-16 20:49:19 +0200
commit20d8a3474b0570997d8d241a55244228f0e38ce3 (patch)
tree89b56ad0b369903b7431e5386f57e4567742e02d /test
parente97997f1e56731b97d469f775994ef3d05f17d35 (diff)
No need to write '
Change-Id: I0562defc6fc60ee83bc73b901caf46b1283a9df9
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index 87588c1f869f..aa927771c0c9 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -25,15 +25,14 @@ const size_t constMaxActionType = 513;
int lclWriteCallback(void* pContext, const char* sBuffer, int nLen)
{
SvStream* pStream = static_cast<SvStream*>(pContext);
- pStream->Write(sBuffer, nLen);
- return nLen;
+ return (int) pStream->Write(sBuffer, nLen);
}
int lclCloseCallback(void* pContext)
{
SvStream* pStream = static_cast<SvStream*>(pContext);
- pStream->WriteChar('\0');
- return 0;
+ pStream->Flush();
+ return 0; // 0 or -1 in case of error
}
OUString flagToString(sal_uInt16 nFlag)