diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-06-01 16:57:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-01 23:00:26 +0200 |
commit | eebd84b337506c8fff151493f9b51bd127dbc89f (patch) | |
tree | 45284084864d587e245d6f5eaa1b19b546ec1dd5 /extensions | |
parent | 1193c331945481dd155a55c6695ff6fd88bd3d10 (diff) |
loplugin:stringview (clang-cl)
Change-Id: Id1f8f24fec638efcdf5a04ca7253e6f401afd2fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116548
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/ole/oleobjw.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx index 91f136a8a235..b9123a031ee8 100644 --- a/extensions/source/ole/oleobjw.cxx +++ b/extensions/source/ole/oleobjw.cxx @@ -1427,9 +1427,8 @@ uno::Any SAL_CALL IUnknownWrapper::directInvoke( const OUString& aName, const un "DISP_E_BADVARTYPE.", nullptr); break; case DISP_E_EXCEPTION: - message = "[automation bridge]: " - + OUString(o3tl::toU(excepinfo.bstrDescription), - ::SysStringLen(excepinfo.bstrDescription)); + message = OUString::Concat("[automation bridge]: ") + + o3tl::toU(excepinfo.bstrDescription); throw InvocationTargetException(message, Reference<XInterface>(), Any()); break; case DISP_E_MEMBERNOTFOUND: @@ -2049,9 +2048,8 @@ Any IUnknownWrapper::invokeWithDispIdComTlb(FuncDesc& aFuncDesc, "DISP_E_BADVARTYPE.", nullptr); break; case DISP_E_EXCEPTION: - message = "[automation bridge]: " - + OUString(o3tl::toU(excepinfo.bstrDescription), - ::SysStringLen(excepinfo.bstrDescription)); + message = OUString::Concat("[automation bridge]: ") + + o3tl::toU(excepinfo.bstrDescription); throw InvocationTargetException(message, Reference<XInterface>(), Any()); break; |