summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-04 14:47:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-04 21:38:25 +0200
commitef0815d8e19e18cc10d7078d47a04c8848668738 (patch)
tree71f1b439cbb4e5a4e479b237ce7376afc31fbdde /extensions/source
parentfc7464a882f22e7974135e44867d1a183881edd9 (diff)
loplugin:elidestringvar (clang-cl)
...plus ensuing loplugin:unnecessaryparen in vcl/source/treelist/transfer.cxx Change-Id: I1abf2e0c589c2c124399c1337f5dd703ee7d04a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100094 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/ole/unoobjw.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index e878fddbb682..65382fa542bc 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -2037,9 +2037,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP InterfaceOleWrapper::Invoke(DISPID dispidMembe
}
catch(...)
{
- OUString message= "InterfaceOleWrapper::Invoke : \n"
- "Unexpected exception";
- writeExcepinfo(pexcepinfo, message);
+ writeExcepinfo(pexcepinfo, "InterfaceOleWrapper::Invoke : \nUnexpected exception");
ret = DISP_E_EXCEPTION;
}
@@ -2130,9 +2128,7 @@ HRESULT InterfaceOleWrapper::doInvoke( DISPPARAMS * pdispparams, VARIANT * pvarR
}
catch( ... )
{
- OUString message= "InterfaceOleWrapper::doInvoke : \n"
- "Unexpected exception";
- writeExcepinfo(pexcepinfo, message);
+ writeExcepinfo(pexcepinfo, "InterfaceOleWrapper::doInvoke : \nUnexpected exception");
ret = DISP_E_EXCEPTION;
}
return ret;
@@ -2168,9 +2164,7 @@ HRESULT InterfaceOleWrapper::doGetProperty( DISPPARAMS * /*pdispparams*/, VARIAN
}
catch( ... )
{
- OUString message= "InterfaceOleWrapper::doInvoke : \n"
- "Unexpected exception";
- writeExcepinfo(pexcepinfo, message);
+ writeExcepinfo(pexcepinfo, "InterfaceOleWrapper::doInvoke : \nUnexpected exception");
ret = DISP_E_EXCEPTION;
}
return ret;
@@ -2962,9 +2956,7 @@ HRESULT InterfaceOleWrapper::InvokeGeneral( DISPID dispidMember, unsigned short
}
catch( ... )
{
- OUString message= "InterfaceOleWrapper::InvokeGeneral : \n"
- "Unexpected exception";
- writeExcepinfo(pexcepinfo, message);
+ writeExcepinfo(pexcepinfo, "InterfaceOleWrapper::InvokeGeneral : \nUnexpected exception");
ret = DISP_E_EXCEPTION;
}
return ret;
@@ -3431,9 +3423,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID di
}
catch(...)
{
- OUString message= "UnoObjectWrapperRemoteOpt::Invoke : \n"
- "Unexpected exception";
- writeExcepinfo(pexcepinfo, message);
+ writeExcepinfo(pexcepinfo, "UnoObjectWrapperRemoteOpt::Invoke : \nUnexpected exception");
ret = DISP_E_EXCEPTION;
}