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 | d93bfa79d958cf6225144802f5e0d69a9d6561db (patch) | |
tree | 9fd4228022a8dcd56f421122efb777baf761392a | |
parent | e2496aadad27c7187b85551595e93a7b4afaa9a7 (diff) |
Clean up and equalsAsciiL substitution.
-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 cfea95af..da9fce33 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); |