diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-25 16:41:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-27 11:04:46 +0000 |
commit | 7f91e4a982672969c80e6117d09ae816a8dc5f21 (patch) | |
tree | bd190f71219f8afc36a367322b8a2292f2a30949 /pyuno/source/loader/pyuno_loader.cxx | |
parent | d9031bd83ffe718a80da9ecbdbeb485e35fbabee (diff) |
loplugin:stringadd in oox..pyuno
after my patch to merge the bufferadd loplugin into stringadd
Change-Id: I5fdc0a33923fe00e7b588f4576607515a93e5c13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno/source/loader/pyuno_loader.cxx')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index da0467f450c6..e9cbc807ebf3 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -72,8 +72,7 @@ static void raiseRuntimeExceptionWhenNeeded() PyErr_Fetch(reinterpret_cast<PyObject **>(&excType), reinterpret_cast<PyObject**>(&excValue), reinterpret_cast<PyObject**>(&excTraceback)); Runtime runtime; css::uno::Any a = runtime.extractUnoException( excType, excValue, excTraceback ); - OUStringBuffer buf; - buf.append( "python-loader:" ); + OUStringBuffer buf( "python-loader:" ); if( auto e = o3tl::tryAccess<css::uno::Exception>(a) ) buf.append( e->Message ); throw RuntimeException( buf.makeStringAndClear() ); |