diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 14:35:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 15:07:19 +0000 |
commit | f6011536a888be3a4e1cda2de9532b6ba3f4a275 (patch) | |
tree | 30297e414e2b065e911b9cfdeda43c839bad9792 | |
parent | 9605763e3dc8c85137787c77c31e8639553a35ed (diff) |
coverity#704378 gold, Logically dead code
Change-Id: I53bd1e36b2c4e9e7f5e8ec95fa79348fc9cac98b
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 96f521831bb5..9c8b35d60930 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -1041,7 +1041,7 @@ void SwBaseShell::Execute(SfxRequest &rReq) if( eVOrient != text::VertOrientation::TOP && eVOrient != text::VertOrientation::NONE) aSet.Put(SwFmtVertOrient(0, text::VertOrientation::TOP)); - if(eHOrient != text::HoriOrientation::NONE || eHOrient != text::HoriOrientation::LEFT) + if (eHOrient != text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT) aSet.Put(SwFmtHoriOrient(0, text::HoriOrientation::LEFT)); break; @@ -1053,7 +1053,7 @@ void SwBaseShell::Execute(SfxRequest &rReq) if( eVOrient != text::VertOrientation::TOP) aSet.Put(SwFmtVertOrient(0, text::VertOrientation::TOP)); - if(eHOrient != text::HoriOrientation::NONE || eHOrient != text::HoriOrientation::LEFT || eHOrient != text::HoriOrientation::RIGHT) + if (eHOrient != text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT) aSet.Put(SwFmtHoriOrient(0, text::HoriOrientation::LEFT)); break; @@ -1065,7 +1065,7 @@ void SwBaseShell::Execute(SfxRequest &rReq) if( eVOrient != text::VertOrientation::TOP) aSet.Put(SwFmtVertOrient(0, text::VertOrientation::TOP)); - if(eHOrient != text::HoriOrientation::NONE || eHOrient != text::HoriOrientation::LEFT || eHOrient != text::HoriOrientation::RIGHT) + if (eHOrient != text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT) aSet.Put(SwFmtHoriOrient(0, text::HoriOrientation::LEFT)); break; |