Kaydet (Commit) 52770659 authored tarafından Efe Gürkan YALAMAN's avatar Efe Gürkan YALAMAN Kaydeden (comit) Thomas Arnhold

fdo#62096 Replace O(U)String compareTo with ==

Change-Id: Id89b7eeb09b5cd7cee449cd1a20fb13b630f29c4
Reviewed-on: https://gerrit.libreoffice.org/3136Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 0b78f2b9
......@@ -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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment