diff options
author | Kevin Hunter <hunteke@earlham.edu> | 2010-11-18 17:43:40 -0500 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-19 10:10:51 +0000 |
commit | 088f05ac5fce17a04f7f5142bffd04b895d59455 (patch) | |
tree | d4365e814af639d32d3d4c8561dd2fd81d329f0e /tools | |
parent | bbd92e4790bf7d285cc44cd03ccbb5a1ed3b1135 (diff) |
EasyHack: RTL_CONST macro from createFromAscii
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/diagnose_ex.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h index 4b7ce44df320..dde948572f3a 100644 --- a/tools/inc/tools/diagnose_ex.h +++ b/tools/inc/tools/diagnose_ex.h @@ -91,14 +91,14 @@ OSL_ENSURE(c, m); \ throw ::com::sun::star::lang::IllegalArgumentException( \ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \ - ::rtl::OUString::createFromAscii(",\n"m), \ + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\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( \ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \ - ::rtl::OUString::createFromAscii(",\n"m), \ + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \ ifc, \ arg ); } @@ -109,13 +109,13 @@ OSL_ENSURE(c, m); \ throw ::com::sun::star::uno::RuntimeException( \ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \ - ::rtl::OUString::createFromAscii(",\n"m), \ + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\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( \ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \ - ::rtl::OUString::createFromAscii(",\n"m), \ + ::rtl::OUString::( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \ ifc ); } /** This macro asserts the given condition (in debug mode), and |