diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-04 18:13:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-04 18:13:09 +0100 |
commit | eb760663d06dd9eb445b5390c854c4daf18a1a52 (patch) | |
tree | 8deaf57d1fe2245eae09abec62da5a76672a10fd /svtools/source/uno/unoevent.cxx | |
parent | b4346bb26a90a3a80a93f308a5a6e89a134b9946 (diff) |
loplugin:stringconstant
Change-Id: I45c0b74c9d54120bfac85f16a336ac7ff487ed73
Diffstat (limited to 'svtools/source/uno/unoevent.cxx')
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index d789301a4c37..8ddfd0d2e661 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -287,41 +287,41 @@ void SvBaseEventDescriptor::getMacroFromAny( for (sal_Int32 i = 0; i < nCount; i++) { PropertyValue& aValue = aSequence[i]; - if (aValue.Name.equals(sEventType)) + if (aValue.Name == sEventType) { OUString sTmp; aValue.Value >>= sTmp; - if (sTmp.equals(sStarBasic)) + if (sTmp == sStarBasic) { eType = STARBASIC; bTypeOK = true; } - else if (sTmp.equals(sJavaScript)) + else if (sTmp == sJavaScript) { eType = JAVASCRIPT; bTypeOK = true; } - else if (sTmp.equals(sScript)) + else if (sTmp == sScript) { eType = EXTENDED_STYPE; bTypeOK = true; } - else if (sTmp.equals(sNone)) + else if (sTmp == sNone) { bNone = true; bTypeOK = true; } // else: unknown script type } - else if (aValue.Name.equals(sMacroName)) + else if (aValue.Name == sMacroName) { aValue.Value >>= sMacroVal; } - else if (aValue.Name.equals(sLibrary)) + else if (aValue.Name == sLibrary) { aValue.Value >>= sLibVal; } - else if (aValue.Name.equals(sScript)) + else if (aValue.Name == sScript) { aValue.Value >>= sScriptVal; } |