[Libreoffice-commits] core.git: shell/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Feb 3 22:47:39 UTC 2020
shell/source/win32/SysShExec.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d81affe8ae1010093521731f863d6a6b29f3510d
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Feb 3 16:28:04 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Feb 3 23:47:01 2020 +0100
loplugin:stringadd (clang-cl)
Change-Id: Id5babe1e16c8f8a8c72077fc95508a567138766a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87889
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index 73142d8a0fce..874c4f5e94cf 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -253,7 +253,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
if (PathResolve(path, nullptr, PRF_VERIFYEXISTS | PRF_REQUIREABSOLUTE) == 0)
{
throw css::lang::IllegalArgumentException(
- "XSystemShellExecute.execute, PathResolve(" + OUString(o3tl::toU(path))
+ OUStringLiteral("XSystemShellExecute.execute, PathResolve(") + o3tl::toU(path)
+ ") failed",
{}, 0);
}
@@ -266,7 +266,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
if (SHGetFileInfoW(path, 0, &info, sizeof info, SHGFI_ATTRIBUTES) == 0)
{
throw css::lang::IllegalArgumentException(
- "XSystemShellExecute.execute, SHGetFileInfoW(" + OUString(o3tl::toU(path)) + ") failed", {},
+ OUStringLiteral("XSystemShellExecute.execute, SHGetFileInfoW(") + o3tl::toU(path) + ") failed", {},
0);
}
if ((info.dwAttributes & SFGAO_LINK) == 0) {
More information about the Libreoffice-commits
mailing list