From 3260edbeb59d87f3f3e5c700cda4b0fd6222df0c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 27 Apr 2021 08:44:09 +0200 Subject: loplugin:stringadd (clang-cl) Change-Id: Id7c2db4abcf947c4efa0296df29feca2c36d3cf8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114692 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/source/win32/SysShExec.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index fa83180705a0..8eec8b52d96f 100644 --- a/shell/source/win32/SysShExec.cxx +++ b/shell/source/win32/SysShExec.cxx @@ -258,7 +258,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( - OUStringLiteral(u"XSystemShellExecute.execute, PathResolve(") + o3tl::toU(path) + OUString::Concat(u"XSystemShellExecute.execute, PathResolve(") + o3tl::toU(path) + ") failed", {}, 0); } @@ -271,7 +271,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( - OUStringLiteral(u"XSystemShellExecute.execute, SHGetFileInfoW(") + o3tl::toU(path) + ") failed", {}, + OUString::Concat(u"XSystemShellExecute.execute, SHGetFileInfoW(") + o3tl::toU(path) + ") failed", {}, 0); } if ((info.dwAttributes & SFGAO_LINK) == 0) { -- cgit