summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:36:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:36 +0100
commit92924b152e8417fd3dd52fb4666176678424f9c7 (patch)
tree55755f207ea382b2423827c934a95885d0c67760 /include
parent44199e81a1ef4e8712883f8bd191ef239335e06c (diff)
tools: Use appropriate OUString functions on string constants
Change-Id: If79786d21b6d7cb0cb0ec9b947f43e76aa7547e3
Diffstat (limited to 'include')
-rw-r--r--include/tools/diagnose_ex.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/tools/diagnose_ex.h b/include/tools/diagnose_ex.h
index 90683f00d40a..55cfe16a4f19 100644
--- a/include/tools/diagnose_ex.h
+++ b/include/tools/diagnose_ex.h
@@ -61,15 +61,15 @@
#define ENSURE_ARG_OR_THROW(c, m) if( !(c) ) { \
OSL_ENSURE(c, m); \
throw ::com::sun::star::lang::IllegalArgumentException( \
- OUString(BOOST_CURRENT_FUNCTION) + \
- OUString( ",\n" m ), \
+ OUStringLiteral(BOOST_CURRENT_FUNCTION) \
+ + ",\n" m, \
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(), \
0 ); }
#define ENSURE_ARG_OR_THROW2(c, m, ifc, arg) if( !(c) ) { \
OSL_ENSURE(c, m); \
throw ::com::sun::star::lang::IllegalArgumentException( \
- OUString(BOOST_CURRENT_FUNCTION) + \
- OUString( ",\n" m ), \
+ OUStringLiteral(BOOST_CURRENT_FUNCTION) \
+ + ",\n" m, \
ifc, \
arg ); }
@@ -80,16 +80,14 @@
if( !(c) ){ \
OSL_ENSURE(c, m); \
throw ::com::sun::star::uno::RuntimeException( \
- OUString(BOOST_CURRENT_FUNCTION) + \
- OUString( ",\n" m ), \
+ OUStringLiteral(BOOST_CURRENT_FUNCTION) + ",\n" m, \
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() ); }
#define ENSURE_OR_THROW2(c, m, ifc) \
if( !(c) ) { \
OSL_ENSURE(c, m); \
throw ::com::sun::star::uno::RuntimeException( \
- OUString(BOOST_CURRENT_FUNCTION) + \
- OUString( ",\n" m ), \
+ OUStringLiteral(BOOST_CURRENT_FUNCTION) + ",\n" m, \
ifc ); }
/** This macro asserts the given condition (in debug mode), and