commit cf2811221528d3c8000951c8a3ecbd92918b58fe Author: serval Date: Sun Dec 19 15:37:23 2010 +0100 RTL_CONSTASCII_USTRINGPARAM diff --git a/binfilter/bf_forms/source/component/FormComponent.hxx b/binfilter/bf_forms/source/component/FormComponent.hxx index c6fa47c..599fb06 100644 --- a/binfilter/bf_forms/source/component/FormComponent.hxx +++ b/binfilter/bf_forms/source/component/FormComponent.hxx @@ -69,7 +69,7 @@ const sal_Int16 FRM_DEFAULT_TABINDEX = 0; // macro for quickly implementing XServiceInfo::getImplementationName #define IMPLEMENTATION_NAME(ImplName) \ virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) \ - { return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.forms." )) + ::rtl::OUString::createFromAscii(#ImplName); } + { return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.forms." )) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(#ImplName)); } // macro for overriding the getInfoServive method of OAggregationArrayUsageHelper #define IMPLEMENT_INFO_SERVICE() \ diff --git a/binfilter/bf_forms/source/misc/forms_services.cxx b/binfilter/bf_forms/source/misc/forms_services.cxx index 844ee6f..fafc36e 100644 --- a/binfilter/bf_forms/source/misc/forms_services.cxx +++ b/binfilter/bf_forms/source/misc/forms_services.cxx @@ -303,7 +303,7 @@ void registerClassInfo( //....................................................................................... #define REGISTER_CLASS_CORE(classImplName) \ registerClassInfo( \ - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.form." )) + ::rtl::OUString::createFromAscii(#classImplName), \ + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.form." )) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(#classImplName)), \ aServices, \ frm::classImplName##_CreateInstance)