diff options
Diffstat (limited to 'unoxml/source/events/testlistener.cxx')
-rw-r--r-- | unoxml/source/events/testlistener.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unoxml/source/events/testlistener.cxx b/unoxml/source/events/testlistener.cxx index 0b29277158eb..496f89ff9d85 100644 --- a/unoxml/source/events/testlistener.cxx +++ b/unoxml/source/events/testlistener.cxx @@ -96,21 +96,21 @@ namespace DOM { namespace events void SAL_CALL CTestListener::initialize(const Sequence< Any >& args) throw(RuntimeException) { if (args.getLength() < 3) throw IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("Wrong number of arguments")), Reference< XInterface >(), 0); + "Wrong number of arguments", Reference< XInterface >(), 0); Reference <XEventTarget> aTarget; if(! (args[0] >>= aTarget)) throw IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("Illegal argument 1")), Reference< XInterface >(), 1); + "Illegal argument 1", Reference< XInterface >(), 1); OUString aType; if (! (args[1] >>= aType)) - throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("Illegal argument 2")), Reference< XInterface >(), 2); + throw IllegalArgumentException("Illegal argument 2", Reference< XInterface >(), 2); sal_Bool bCapture = sal_False; if(! (args[2] >>= bCapture)) throw IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("Illegal argument 3")), Reference< XInterface >(), 3); + "Illegal argument 3", Reference< XInterface >(), 3); - if(! (args[3] >>= m_name)) m_name = OUString(RTL_CONSTASCII_USTRINGPARAM("<unnamed listener>")); + if(! (args[3] >>= m_name)) m_name = "<unnamed listener>"; m_target = aTarget; m_type = aType; |