[Libreoffice-commits] core.git: framework/source

Efe Gürkan YALAMAN efeyalaman at gmail.com
Sun Mar 31 08:40:04 PDT 2013


 framework/source/fwe/xml/toolboxdocumenthandler.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 52770659d33f8f08a769043392cfb5a926019fef
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date:   Sun Mar 31 17:27:57 2013 +0300

    fdo#62096 Replace O(U)String compareTo with ==
    
    Change-Id: Id89b7eeb09b5cd7cee449cd1a20fb13b630f29c4
    Reviewed-on: https://gerrit.libreoffice.org/3136
    Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
    Tested-by: Thomas Arnhold <thomas at arnhold.org>

diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index 21a13e2..97ec8ce 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -426,17 +426,17 @@ throw(  SAXException, RuntimeException )
                     //fix for fdo#39370
                     /// check whether RTL interface or not
                     if(Application::GetSettings().GetLayoutRTL()){
-                        if (aCommandURL.compareTo(".uno:ParaLeftToRight") == 0)
+                        if (aCommandURL == ".uno:ParaLeftToRight")
                             aCommandURL = ".uno:ParaRightToLeft";
-                        else if (aCommandURL.compareTo(".uno:ParaRightToLeft") == 0)
+                        else if (aCommandURL == ".uno:ParaRightToLeft")
                             aCommandURL = ".uno:ParaLeftToRight";
-                        else if (aCommandURL.compareTo(".uno:LeftPara") == 0)
+                        else if (aCommandURL == ".uno:LeftPara")
                             aCommandURL = ".uno:RightPara";
-                        else if (aCommandURL.compareTo(".uno:RightPara") == 0)
+                        else if (aCommandURL == ".uno:RightPara")
                             aCommandURL = ".uno:LeftPara";
-                        else if (aCommandURL.compareTo(".uno:AlignLeft") == 0)
+                        else if (aCommandURL == ".uno:AlignLeft")
                             aCommandURL = ".uno:AlignRight";
-                        else if (aCommandURL.compareTo(".uno:AlignRight") == 0)
+                        else if (aCommandURL == ".uno:AlignRight")
                             aCommandURL = ".uno:AlignLeft";
                     }
 


More information about the Libreoffice-commits mailing list