[Libreoffice-commits] .: odk/examples

Thomas Arnhold tarnhold at kemper.freedesktop.org
Sun Jan 23 09:02:35 PST 2011


 odk/examples/cpp/complextoolbarcontrols/MyListener.cxx |   32 ++++-------------
 1 file changed, 9 insertions(+), 23 deletions(-)

New commits:
commit d93bfa79d958cf6225144802f5e0d69a9d6561db
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Sat Jan 22 21:35:18 2011 +0100

    Clean up and equalsAsciiL substitution.

diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx
index cfea95a..da9fce3 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);


More information about the Libreoffice-commits mailing list