summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 18:39:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-15 08:37:54 +0200
commitb52f309f2b9037ee53ab8ac2d66967c012ba82f1 (patch)
tree4a4ace081c742af0cef50909e06394d9aef80345 /sal
parent897493fbd34a1bd10320767b48cbf04d422f89b3 (diff)
improve loplugin simplifyconstruct
to find stuff like OUString s = OUString("xxx") Change-Id: Ie7ed074c1ae012734c67a2a89c564c1900a4ab04 Reviewed-on: https://gerrit.libreoffice.org/70697 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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);