Kaydet (Commit) f1002047 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:passstringbyref

Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
üst 674a8a08
...@@ -111,14 +111,14 @@ typedef void accessFilePathState; ...@@ -111,14 +111,14 @@ typedef void accessFilePathState;
* Helper function for resolving Mac native alias files (not the same as unix alias files) * Helper function for resolving Mac native alias files (not the same as unix alias files)
* and to return the resolved alias as rtl::OString * 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]; sal_Char path[PATH_MAX];
if (p.getLength() < PATH_MAX) if (p.getLength() < PATH_MAX)
{ {
strcpy(path, p.getStr()); strcpy(path, p.getStr());
macxp_resolveAlias(path, PATH_MAX); macxp_resolveAlias(path, PATH_MAX);
p = rtl::OString(path); return rtl::OString(path);
} }
return p; return p;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment