diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-22 21:35:18 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-22 21:35:18 +0100 |
commit | 176267cc057205c678a64e775ef57b41b076db22 (patch) | |
tree | 0cacd5a3408329faf4e6008a48701218578b0ca0 /odk/examples | |
parent | Replace suitable equalsAscii calls with equalsAsciiL. (diff) | |
download | core-176267cc057205c678a64e775ef57b41b076db22.tar.gz core-176267cc057205c678a64e775ef57b41b076db22.zip |
Clean up and equalsAsciiL substitution.
Diffstat (limited to 'odk/examples')
-rw-r--r-- | odk/examples/cpp/complextoolbarcontrols/MyListener.cxx | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx index ec90afbbaa33..b3e6cbaeb9bf 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx @@ -35,22 +35,16 @@ namespace css = ::com::sun::star; -/*----------------------------------------------------- - 20.11.2003 11:31 ------------------------------------------------------*/ + MyListener::MyListener(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR) : m_xSMGR(xSMGR) {} -/*----------------------------------------------------- - 20.11.2003 11:32 ------------------------------------------------------*/ + MyListener::~MyListener() {} -/*----------------------------------------------------- - 20.11.2003 12:04 ------------------------------------------------------*/ + css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments) throw (css::lang::IllegalArgumentException, css::uno::Exception, @@ -125,18 +119,14 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans: return css::uno::Any(); } -/*----------------------------------------------------- - 20.11.2003 12:13 ------------------------------------------------------*/ + ::rtl::OUString SAL_CALL MyListener::getImplementationName() throw (css::uno::RuntimeException) { return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MYLISTENER_IMPLEMENTATIONNAME)); } -/*----------------------------------------------------- - 20.11.2003 12:13 ------------------------------------------------------*/ + css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNames() throw (css::uno::RuntimeException) { @@ -145,21 +135,17 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNa return lNames; } -/*----------------------------------------------------- - 20.11.2003 12:14 ------------------------------------------------------*/ + sal_Bool SAL_CALL MyListener::supportsService(const ::rtl::OUString& sServiceName) throw (css::uno::RuntimeException) { return ( - sServiceName.equalsAscii(MYLISTENER_SERVICENAME) || - sServiceName.equalsAscii("com.sun.star.task.Job" ) + sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(MYLISTENER_SERVICENAME)) || + sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.task.Job")) ); } -/*----------------------------------------------------- - 20.11.2003 11:31 ------------------------------------------------------*/ + css::uno::Reference< css::uno::XInterface > MyListener::st_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR) { MyListener* pListener = new MyListener(xSMGR); |