summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-19 21:37:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-19 21:37:51 +0100
commitf100204736b19339d673f4b469930357de2b969e (patch)
treeb42afd0dd6e449667c214f6068ed6828a79642cc /sal
parent674a8a084bff6aa089d073b2710cd6a8b6662546 (diff)
loplugin:passstringbyref
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/uunxapi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/uunxapi.cxx b/sal/osl/unx/uunxapi.cxx
index 8d495f20c280..6fb75a1d68e1 100644
--- a/sal/osl/unx/uunxapi.cxx
+++ b/sal/osl/unx/uunxapi.cxx
@@ -111,14 +111,14 @@ typedef void accessFilePathState;
* Helper function for resolving Mac native alias files (not the same as unix alias files)
* and to return the resolved alias as rtl::OString
*/
-static rtl::OString macxp_resolveAliasAndConvert(rtl::OString p)
+static rtl::OString macxp_resolveAliasAndConvert(rtl::OString const & p)
{
sal_Char path[PATH_MAX];
if (p.getLength() < PATH_MAX)
{
strcpy(path, p.getStr());
macxp_resolveAlias(path, PATH_MAX);
- p = rtl::OString(path);
+ return rtl::OString(path);
}
return p;
}