[Libreoffice-commits] .: tools/inc

David Tardon dtardon at kemper.freedesktop.org
Mon Dec 27 00:54:37 PST 2010


 tools/inc/tools/diagnose_ex.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 78b0166764c6056863ab49e4521e443580685461
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Dec 27 09:41:10 2010 +0100

    RTL_CONSTASCII_USTRINGPARAM

diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index 1069466..abc2e74 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -90,14 +90,14 @@
 #define ENSURE_ARG_OR_THROW(c, m) if( !(c) ) { \
                                      OSL_ENSURE(c, m); \
                                      throw ::com::sun::star::lang::IllegalArgumentException( \
-                                     ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
+                                     ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(BOOST_CURRENT_FUNCTION)) + \
                                      ::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(RTL_CONSTASCII_USTRINGPARAM(BOOST_CURRENT_FUNCTION)) + \
                                                ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
                                                ifc, \
                                                arg ); }
@@ -109,7 +109,7 @@
     if( !(c) ){ \
         OSL_ENSURE(c, m); \
         throw ::com::sun::star::uno::RuntimeException( \
-        ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
+        ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(BOOST_CURRENT_FUNCTION)) + \
         ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() ); }
 
@@ -117,7 +117,7 @@
     if( !(c) ) { \
         OSL_ENSURE(c, m); \
         throw ::com::sun::star::uno::RuntimeException( \
-        ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
+        ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(BOOST_CURRENT_FUNCTION)) + \
         ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
         ifc ); }
 


More information about the Libreoffice-commits mailing list