From daf177f703081d7afaa9b1701cf187c9a3e93ee5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Jul 2017 12:14:59 +0200 Subject: use more OUString::operator== in test..xmlsecurity Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562 Reviewed-on: https://gerrit.libreoffice.org/39685 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/meta/xmlmetae.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff/source/meta') diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx index d655520c6bea..c0c10e0247a8 100644 --- a/xmloff/source/meta/xmlmetae.cxx +++ b/xmloff/source/meta/xmlmetae.cxx @@ -375,7 +375,7 @@ SvXMLMetaExport::startElement(const OUString & i_rName, const SvXMLNamespaceMap & rNsMap(mrExport.GetNamespaceMap()); for (sal_uInt16 key = rNsMap.GetFirstKey(); key != USHRT_MAX; key = rNsMap.GetNextKey(key)) { - if (name.equals(rNsMap.GetAttrNameByKey(key))) { + if (name == rNsMap.GetAttrNameByKey(key)) { found = true; break; } @@ -401,7 +401,7 @@ SvXMLMetaExport::startElement(const OUString & i_rName, const sal_Int16 nCount = i_xAttribs->getLength(); for (sal_Int16 i = 0; i < nCount; ++i) { const OUString name(i_xAttribs->getNameByIndex(i)); - if (ns.equals(name)) { + if (ns == name) { found = true; break; } -- cgit