[PATCH] fdo#62096 - Replaced compareTo with ==

Sameer Deshmukh (via Code Review) gerrit at gerrit.libreoffice.org
Sun Apr 21 11:13:03 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3544

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/44/3544/1

fdo#62096 - Replaced compareTo with ==

Change-Id: Ie5d3b3181038ddc2ffe2875aca1a5b8b18ab7a4f
---
M writerfilter/source/ooxml/OOXMLStreamImpl.cxx
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
index 96f37bd..fb37d34 100644
--- a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
@@ -169,8 +169,8 @@
             {
                 beans::StringPair aPair = aSeq[i];
 
-                if (aPair.First.compareTo(sType) == 0 &&
-                    aPair.Second.compareTo(sStreamType) == 0)
+                if ((aPair.First == sType) &&
+                    (aPair.Second == sStreamType))
                     bFound = true;
                 else if (aPair.First.compareTo(sId) == 0 &&
                          aPair.Second.compareTo(rId) == 0)

-- 
To view, visit https://gerrit.libreoffice.org/3544
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5d3b3181038ddc2ffe2875aca1a5b8b18ab7a4f
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Sameer Deshmukh <sameer.deshmukh93 at gmail.com>



More information about the LibreOffice mailing list