summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_path_helper.cxx2
-rw-r--r--sal/osl/unx/uunxapi.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 7fc2effb5f03..12532e03c01f 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -227,7 +227,7 @@ bool osl_searchPath(
bool bfound = false;
OUString fp(const_cast<rtl_uString*>(pustrFilePath));
- OUString pl = OUString(const_cast<rtl_uString*>(pustrSearchPathList));
+ OUString pl(const_cast<rtl_uString*>(pustrSearchPathList));
path_list_iterator pli(pl);
while (!pli.done())
diff --git a/sal/osl/unx/uunxapi.cxx b/sal/osl/unx/uunxapi.cxx
index b36c3ddc1790..d797de1c5028 100644
--- a/sal/osl/unx/uunxapi.cxx
+++ b/sal/osl/unx/uunxapi.cxx
@@ -388,7 +388,7 @@ int ftruncate_with_name(int fd, sal_uInt64 uSize, rtl_String* path)
* abstraction layer that keeps the pathname around.
*/
- OString fn = OString(path);
+ OString fn(path);
#ifdef MACOSX
fn = macxp_resolveAliasAndConvert(fn);