From b52f309f2b9037ee53ab8ac2d66967c012ba82f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 12 Apr 2019 18:39:22 +0200 Subject: 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 --- sal/osl/unx/file_path_helper.cxx | 2 +- sal/osl/unx/uunxapi.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') 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(pustrFilePath)); - OUString pl = OUString(const_cast(pustrSearchPathList)); + OUString pl(const_cast(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); -- cgit