summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-20 21:07:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 13:15:32 +0200
commit7049328fb2d656d8454d4f704ad75d057e766c0b (patch)
tree0e8f2e1cce68c6a07c82d5e8496a64f716fecfde /sal
parenta003e4ff69263c7feb8e97e3291e5579fbd181ac (diff)
loplugin:stringadd replace OUStringLiteral temporaries with OUString::Concat
Change-Id: I656f06a74d9f0180ae460264563d6a935c7d2c60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114377 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_misc.cxx2
-rw-r--r--sal/osl/unx/pipe.cxx4
-rw-r--r--sal/qa/osl/file/osl_File.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index f9f316d8b5fb..906f5a9e209e 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -841,7 +841,7 @@ static oslFileError oslDoCopy(const char* pszSourceFileName, const char* pszDest
{
//TODO: better pick a temp file name instead of adding .osl-tmp:
// use the destination file to avoid EXDEV /* Cross-device link */
- tmpDestFile = pszDestFileName + OStringLiteral(".osl-tmp");
+ tmpDestFile = pszDestFileName + OString::Concat(".osl-tmp");
if (rename(pszDestFileName, tmpDestFile.getStr()) != 0)
{
int e = errno;
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index 034979ba0e4e..d903bdd2f2de 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -166,11 +166,11 @@ static oslPipe osl_psz_createPipe(const char *pszPipeName, oslPipeOptions Option
OSL_VERIFY(osl_psz_getUserIdent(Security, Ident, sizeof(Ident)));
- name += OStringLiteral("OSL_PIPE_") + Ident + "_" + pszPipeName;
+ name += OString::Concat("OSL_PIPE_") + Ident + "_" + pszPipeName;
}
else
{
- name += OStringLiteral("OSL_PIPE_") + pszPipeName;
+ name += OString::Concat("OSL_PIPE_") + pszPipeName;
}
if (o3tl::make_unsigned(name.getLength()) >= sizeof addr.sun_path)
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 884ff06e917c..b83dbb3b821a 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -380,7 +380,7 @@ static OString outputError(const OString & returnVal, const OString & rightVal,
return OString();
OString aString = msg +
- OStringLiteral(": the returned value is '") +
+ OString::Concat(": the returned value is '") +
returnVal +
"', but the value should be '" +
rightVal +