diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-23 17:38:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-23 20:33:17 +0200 |
commit | 044eba71e34fd3ac5de20578cc62f85756ad07b4 (patch) | |
tree | ad3626d1e6cb3ff09ddc24014c26dddd4ab594b2 /extensions/source/ole/unoobjw.cxx | |
parent | 732bf455279d1db150c600bb1d2719ddde517480 (diff) |
loplugin:stringadd (clang-cl)
Change-Id: I324496ff7c61d87a83b6b378810aa5c78cd7dba3
Reviewed-on: https://gerrit.libreoffice.org/81405
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/ole/unoobjw.cxx')
-rw-r--r-- | extensions/source/ole/unoobjw.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index 3c95a9c16168..0c67f4813263 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -1147,15 +1147,14 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP InterfaceOleWrapper::GetIDsOfNames(REFIID /*ri if( ! rgdispid) return E_POINTER; - OUString sNames; - sNames += "["; + OUString sNames("["); for (unsigned int i = 0; i < cNames; ++i) { // Initialise returned rgdispid values. rgdispid[i] = DISPID_UNKNOWN; if (i > 0) sNames += ","; - sNames += "\"" + OUString(o3tl::toU(rgszNames[i])) + "\""; + sNames += OUStringLiteral("\"") + o3tl::toU(rgszNames[i]) + "\""; } sNames += "]"; @@ -2893,8 +2892,8 @@ HRESULT InterfaceOleWrapper::InvokeGeneral( DISPID dispidMember, unsigned short Type type; if (!getType(arg.bstrVal, type)) { - writeExcepinfo(pexcepinfo, "[automation bridge] A UNO type with the name " + - OUString(o3tl::toU(arg.bstrVal)) + " does not exist!"); + writeExcepinfo(pexcepinfo, OUStringLiteral("[automation bridge] A UNO type with the name ") + + o3tl::toU(arg.bstrVal) + " does not exist!"); return DISP_E_EXCEPTION; } |