summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx4
-rw-r--r--sfx2/source/view/lokhelper.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 2026be6ad82e..cce0acf5cb81 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -1626,9 +1626,7 @@ void FileDialogHelper_Impl::verifyPath()
}
struct stat aFileStat;
if (stat(sysPathC.getStr(), &aFileStat) == -1) {
- SAL_WARN(
- "sfx.dialog",
- "stat(" << sysPathC.getStr() << ") failed with errno " << errno);
+ SAL_WARN( "sfx.dialog", "stat(" << sysPathC << ") failed with errno " << errno);
return;
}
if ((aFileStat.st_mode & (S_IRWXO | S_IRWXG | S_IRWXU)) == S_IRUSR) {
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: */