summaryrefslogtreecommitdiff
path: root/framework/source/fwe/xml/toolboxdocumenthandler.cxx
diff options
context:
space:
mode:
authorEfe G├╝rkan YALAMAN <efeyalaman@gmail.com>2013-03-31 17:27:57 +0300
committerThomas Arnhold <thomas@arnhold.org>2013-03-31 15:39:44 +0000
commit52770659d33f8f08a769043392cfb5a926019fef (patch)
treee33cc95d2d59dcd79b5e1f16415b3d920a06836f /framework/source/fwe/xml/toolboxdocumenthandler.cxx
parent0b78f2b9dc17dfa88d72d6ee27e3e0e0ca6a152f (diff)
fdo#62096 Replace O(U)String compareTo with ==
Change-Id: Id89b7eeb09b5cd7cee449cd1a20fb13b630f29c4 Reviewed-on: https://gerrit.libreoffice.org/3136 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'framework/source/fwe/xml/toolboxdocumenthandler.cxx')
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index 21a13e22a224..97ec8ce35ca2 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";
}