summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 09:17:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 10:51:48 +0200
commit404a3c806ffdf094c2f4a95a722765fea132fad5 (patch)
tree57593f31569f94b70cf34f19a9dc7cc9b061b90a /sal
parentb74c4b7c675883e23bea9fd52682ae89d36539f6 (diff)
loplugin:simplifyconstruct (clang-cl)
Change-Id: I08da288a88c2bce1d4250ec77f17bd483e6bc09c Reviewed-on: https://gerrit.libreoffice.org/79911 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/log.cxx2
-rw-r--r--sal/osl/w32/procimpl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 94aef6b17d24..5a6ffdff9110 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -96,7 +96,7 @@ char const* setEnvFromLoggingIniFile(const char* env, const char* key)
char const* sResult = nullptr;
wchar_t buffer[MAX_PATH];
GetModuleFileNameW(nullptr, buffer, MAX_PATH);
- std::wstring sProgramDirectory = std::wstring(buffer);
+ std::wstring sProgramDirectory(buffer);
std::wstring::size_type pos = sProgramDirectory.find_last_of(L"\\/");
sProgramDirectory = sProgramDirectory.substr(0, pos+1);
sProgramDirectory += L"logging.ini";
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 9f0595395dad..27212eec17d5 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -128,7 +128,7 @@ namespace /* private */
for (sal_uInt32 i = 0; i < env_vars_count; i++)
{
- OUString env_var = OUString(env_vars[i]);
+ OUString env_var(env_vars[i]);
if (env_var.getLength() == 0)
return false;