diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-30 11:26:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-30 14:07:26 +0100 |
commit | 6da12ca82d7bdcbe6f83e9cc46fdb560f729bd63 (patch) | |
tree | fb8b68d6c9d44442d110ae6e6a70b8d1297dae55 /sal | |
parent | 81b3619fb59b617cda7335b5d6de32c5abf4e554 (diff) |
loplugin:stringliteraldefine in various
Change-Id: Ib482e3982128dc47d88a79478d80eef43745d1b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126086
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/pipe.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx index d903bdd2f2de..45d31e00826b 100644 --- a/sal/osl/unx/pipe.cxx +++ b/sal/osl/unx/pipe.cxx @@ -36,8 +36,8 @@ #include <cassert> #include <cstring> -#define PIPEDEFAULTPATH "/tmp" -#define PIPEALTERNATEPATH "/var/tmp" +constexpr OStringLiteral PIPEDEFAULTPATH = "/tmp"; +constexpr OStringLiteral PIPEALTERNATEPATH = "/var/tmp"; static oslPipe osl_psz_createPipe(const char *pszPipeName, oslPipeOptions Options, oslSecurity Security); @@ -148,9 +148,9 @@ static oslPipe osl_psz_createPipe(const char *pszPipeName, oslPipeOptions Option OString name; oslPipe pPipe; - if (access(PIPEDEFAULTPATH, W_OK) == 0) + if (access(PIPEDEFAULTPATH.getStr(), W_OK) == 0) name = PIPEDEFAULTPATH; - else if (access(PIPEALTERNATEPATH, W_OK) == 0) + else if (access(PIPEALTERNATEPATH.getStr(), W_OK) == 0) name = PIPEALTERNATEPATH; else { name = getBootstrapSocketPath (); |