From 2bb8c97140c36e25604d65a8d150f2b18737900c Mon Sep 17 00:00:00 2001
From: Janit Anjaria <janit92@gmail.com>
Date: Sat, 20 Apr 2013 01:10:51 +0530
Subject: [PATCH] fdo#62096 Replace OUString compareTo wiht == operator

I have followed the instructions on the BUgzilla page and using grep i just replaced all the .compareTo() calls with == operator.
---
 svx/source/form/datanavi.cxx |    8 ++++----
 svx/source/form/fmundo.cxx   |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 3d6b18b..dc56c27 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -1368,7 +1368,7 @@ namespace svxform
         const PropertyValue* pPropsEnd = pProps + _xPropSeq.getLength();
         for ( ; pProps != pPropsEnd; ++pProps )
         {
-            if ( sInstModel.compareTo( pProps->Name ) == 0 )
+            if ( sInstModel == pProps->Name )
             {
                 Reference< css::xml::dom::XNode > xRoot;
                 if ( pProps->Value >>= xRoot )
@@ -1395,9 +1395,9 @@ namespace svxform
                     }
                 }
             }
-            else if ( sInstName.compareTo( pProps->Name ) == 0 && ( pProps->Value >>= sTemp ) )
+            else if ( sInstName == pProps->Name && ( pProps->Value >>= sTemp ) )
                 m_sInstanceName = sRet = sTemp;
-            else if ( sInstURL.compareTo( pProps->Name ) == 0 && ( pProps->Value >>= sTemp ) )
+            else if ( sInstURL == pProps->Name && ( pProps->Value >>= sTemp ) )
                 m_sInstanceURL = sTemp;
         }
 
@@ -2204,7 +2204,7 @@ namespace svxform
         const PropertyValue* pPropsEnd = pProps + _xPropSeq.getLength();
         for ( ; pProps != pPropsEnd; ++pProps )
         {
-            if ( sID.compareTo( pProps->Name ) == 0 )
+            if ( sID == pProps->Name )
             {
                 pProps->Value >>= sInstName;
                 break;
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index 0dd1032..2fbe907 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -565,7 +565,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt)
             "FmXUndoEnvironment::propertyChange: inconsistence!");
         for (sal_Int32 i=0; i<nDefaultValueProps; ++i)
         {
-            if (0 == evt.PropertyName.compareTo(pDefaultValueProperties[i]))
+            if (evt.PropertyName == pDefaultValueProperties[i])
             {
                 try
                 {
-- 
1.7.10.4

