summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-18 08:56:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:53:26 +0000
commitd9508c82330ffce6b20fb7ed13c7bcc01f298053 (patch)
tree57e3714dceda11192aee6fcf9b399e1be2b20cd6 /accessibility
parent54a547dbc157d66d5977f2e078655c5d4a03a420 (diff)
cppcheck: silence known conditions warnings accessibility
Change-Id: I4dd933038c344e51f285acd1b11c3b17630457d9 Reviewed-on: https://gerrit.libreoffice.org/24196 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index aee0d899adfb..20b269fcc3ea 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -2129,7 +2129,7 @@ void Document::handleParagraphNotifications()
// 4,1 -> 4,7;
return 5;
}
- else if (Oep >= Osp)
+ else
{
// 1, 2 -> 1, 3; 4,4->4,5;
return 6;
@@ -2143,7 +2143,7 @@ void Document::handleParagraphNotifications()
// 4,1 -> 4,2,
return 7;
}
- else if (Oep >= Osp)
+ else
{
// no such condition. Oep > Osp = Nsp > Nep
}
@@ -2159,7 +2159,7 @@ void Document::handleParagraphNotifications()
{
//no such condition, Oep<Osp=Nsp <= Nep
}
- else if (Oep > Osp)
+ else
{
// 4,7 ->4,6
return 8;
@@ -2173,7 +2173,7 @@ void Document::handleParagraphNotifications()
// 3,2 -> 3,1; 4,4->4,3
return 9;
}
- else if (Oep > Osp)
+ else
{
// 4,7 -> 4,1
return 10;