summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-19 17:32:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-19 21:19:40 +0100
commit95ffa27c593a7fa31309b5e72a55d966862db9a0 (patch)
treea1aa315c716375f7c40e36a96ec4fbabdc1cec12 /sal/osl
parent115e7a00c3ab2927b10e569e41d60230cba93dec (diff)
Extended loplugin:ostr: sal
Change-Id: Ic8a02784acb9f8981249689541bb6cba1b7fbfb7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159682 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/file.cxx2
-rw-r--r--sal/osl/unx/pipe.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index a831221a3c36..eeee7c803fd8 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -110,7 +110,7 @@ struct FileHandle_Impl
rtl_String* m_memstreambuf; /*< used for in-memory streams */
#endif
- explicit FileHandle_Impl(int fd, Kind kind = KIND_FD, OString path = "<anon>");
+ explicit FileHandle_Impl(int fd, Kind kind = KIND_FD, OString path = "<anon>"_ostr);
~FileHandle_Impl();
static size_t getpagesize();
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index 43f577ba8f44..4dfd75ddf662 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -136,7 +136,7 @@ getBootstrapSocketPath()
{
return OUStringToOString(pValue, RTL_TEXTENCODING_UTF8);
}
- return "";
+ return ""_ostr;
}
static oslPipe osl_psz_createPipe(const char *pszPipeName, oslPipeOptions Options,