diff options
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 2420b0903578..f5762518d632 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -146,12 +146,14 @@ void SfxLokHelper::notifyOtherViews(SfxViewShell* pThisView, int nType, const OS void SfxLokHelper::notifyInvalidation(SfxViewShell* pThisView, const OString& rPayload) { - std::stringstream ss; - ss << rPayload.getStr(); + OStringBuffer aBuf; + aBuf.append(rPayload); if (comphelper::LibreOfficeKit::isPartInInvalidation()) - ss << ", " << pThisView->getPart(); - OString aPayload = ss.str().c_str(); - pThisView->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, aPayload.getStr()); + { + aBuf.append(", "); + aBuf.append((sal_Int32) pThisView->getPart()); + } + pThisView->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, aBuf.makeStringAndClear().getStr()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |