diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-06-01 17:19:58 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-06-01 17:40:03 +0100 |
commit | ff43ad1a77a89d1d1ebc0c20807bb9ec508fc9fd (patch) | |
tree | daca69d3fceb0a7ec682360418033cf0126a6e95 /unoxml/source/events | |
parent | Targeted string re-work for lotuswordpro filter (diff) | |
download | core-ff43ad1a77a89d1d1ebc0c20807bb9ec508fc9fd.tar.gz core-ff43ad1a77a89d1d1ebc0c20807bb9ec508fc9fd.zip |
targetted string cleanup
Change-Id: Iaf77bb427d62d7f3be00a96cba4dfb25a01934ac
Diffstat (limited to 'unoxml/source/events')
-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; |