Kaydet (Commit) 20d8a347 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

No need to write '

Change-Id: I0562defc6fc60ee83bc73b901caf46b1283a9df9
üst e97997f1
...@@ -25,15 +25,14 @@ const size_t constMaxActionType = 513; ...@@ -25,15 +25,14 @@ const size_t constMaxActionType = 513;
int lclWriteCallback(void* pContext, const char* sBuffer, int nLen) int lclWriteCallback(void* pContext, const char* sBuffer, int nLen)
{ {
SvStream* pStream = static_cast<SvStream*>(pContext); SvStream* pStream = static_cast<SvStream*>(pContext);
pStream->Write(sBuffer, nLen); return (int) pStream->Write(sBuffer, nLen);
return nLen;
} }
int lclCloseCallback(void* pContext) int lclCloseCallback(void* pContext)
{ {
SvStream* pStream = static_cast<SvStream*>(pContext); SvStream* pStream = static_cast<SvStream*>(pContext);
pStream->WriteChar('\0'); pStream->Flush();
return 0; return 0; // 0 or -1 in case of error
} }
OUString flagToString(sal_uInt16 nFlag) OUString flagToString(sal_uInt16 nFlag)
......
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