summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 19:49:53 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:42 +0200
commitd6bc02f8c4cd0f50f0a2631ac7634dab408efc1f (patch)
treeb5a12df1fcae025715633469b75ab4c9b6f6d279 /unoxml
parent0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/document.cxx25
1 files changed, 6 insertions, 19 deletions
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index f749cfd06c33..ce8a4c51e00e 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -982,30 +982,17 @@ namespace DOM
{
// does not need mutex currently
events::CEvent *pEvent = 0;
- if (
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMSubtreeModified")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMNodeInserted")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMNodeRemoved")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMNodeRemovedFromDocument")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMNodeInsertedIntoDocument")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMAttrModified")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMCharacterDataModified")))
+ if ( aType == "DOMSubtreeModified" || aType == "DOMNodeInserted" || aType == "DOMNodeRemoved"
+ || aType == "DOMNodeRemovedFromDocument" || aType == "DOMNodeInsertedIntoDocument" || aType == "DOMAttrModified"
+ || aType == "DOMCharacterDataModified")
{
pEvent = new events::CMutationEvent;
- } else if (
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMFocusIn")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMFocusOut")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DOMActivate")))
+ } else if ( aType == "DOMFocusIn" || aType == "DOMFocusOut" || aType == "DOMActivate")
{
pEvent = new events::CUIEvent;
- } else if (
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("click")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("mousedown")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("mouseup")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("mouseover")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("mousemove")) ||
- aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("mouseout")) )
+ } else if ( aType == "click" || aType == "mousedown" || aType == "mouseup"
+ || aType == "mouseover" || aType == "mousemove" || aType == "mouseout" )
{
pEvent = new events::CMouseEvent;
}