summaryrefslogtreecommitdiff
path: root/sal/osl/all
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/osl/all
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/osl/all')
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 1 insertions, 1 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";