[Libreoffice-commits] core.git: svtools/source
Stephan Bergmann
sbergman at redhat.com
Mon Jan 4 09:13:47 PST 2016
svtools/source/uno/unoevent.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit eb760663d06dd9eb445b5390c854c4daf18a1a52
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jan 4 18:13:09 2016 +0100
loplugin:stringconstant
Change-Id: I45c0b74c9d54120bfac85f16a336ac7ff487ed73
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index d789301..8ddfd0d 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;
}
More information about the Libreoffice-commits
mailing list