[Libreoffice-commits] core.git: sal/osl
Stephan Bergmann
sbergman at redhat.com
Wed Mar 19 13:38:18 PDT 2014
sal/osl/unx/uunxapi.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f100204736b19339d673f4b469930357de2b969e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Mar 19 21:37:51 2014 +0100
loplugin:passstringbyref
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
diff --git a/sal/osl/unx/uunxapi.cxx b/sal/osl/unx/uunxapi.cxx
index 8d495f2..6fb75a1 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;
}
More information about the Libreoffice-commits
mailing list