summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-20 21:07:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 13:15:32 +0200
commit7049328fb2d656d8454d4f704ad75d057e766c0b (patch)
tree0e8f2e1cce68c6a07c82d5e8496a64f716fecfde /include
parenta003e4ff69263c7feb8e97e3291e5579fbd181ac (diff)
loplugin:stringadd replace OUStringLiteral temporaries with OUString::Concat
Change-Id: I656f06a74d9f0180ae460264563d6a935c7d2c60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114377 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/tools/diagnose_ex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tools/diagnose_ex.h b/include/tools/diagnose_ex.h
index f41670b7343f..530af9d6efe1 100644
--- a/include/tools/diagnose_ex.h
+++ b/include/tools/diagnose_ex.h
@@ -79,14 +79,14 @@ inline css::uno::Any DbgGetCaughtException()
OSL_ENSURE(c, m); \
throw css::lang::IllegalArgumentException( \
__func__ \
- + OUStringLiteral(u",\n" m), \
+ + OUString::Concat(u",\n" m), \
css::uno::Reference< css::uno::XInterface >(), \
0 ); }
#define ENSURE_ARG_OR_THROW2(c, m, ifc, arg) if( !(c) ) { \
OSL_ENSURE(c, m); \
throw css::lang::IllegalArgumentException( \
__func__ \
- + OUStringLiteral(u",\n" m), \
+ + OUString::Concat(u",\n" m), \
ifc, \
arg ); }
@@ -97,14 +97,14 @@ inline css::uno::Any DbgGetCaughtException()
if( !(c) ){ \
OSL_ENSURE(c, m); \
throw css::uno::RuntimeException( \
- __func__ + OUStringLiteral(u",\n" m), \
+ __func__ + OUString::Concat(u",\n" m), \
css::uno::Reference< css::uno::XInterface >() ); }
#define ENSURE_OR_THROW2(c, m, ifc) \
if( !(c) ) { \
OSL_ENSURE(c, m); \
throw css::uno::RuntimeException( \
- __func__ + OUStringLiteral(u",\n" m), \
+ __func__ + OUString::Concat(u",\n" m), \
ifc ); }
/** This macro asserts the given condition (in debug mode), and