Address incorrect cppcheck
This commit is contained in:
@@ -920,6 +920,7 @@ void TxtReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
const int prevPage = currentPage;
|
const int prevPage = currentPage;
|
||||||
currentPage += 10;
|
currentPage += 10;
|
||||||
clampPage();
|
clampPage();
|
||||||
|
// cppcheck-suppress knownConditionTrueFalse
|
||||||
if (currentPage != prevPage) {
|
if (currentPage != prevPage) {
|
||||||
globalReadingSessionTracker().onPageTurn();
|
globalReadingSessionTracker().onPageTurn();
|
||||||
}
|
}
|
||||||
@@ -930,6 +931,7 @@ void TxtReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
const int prevPage = currentPage;
|
const int prevPage = currentPage;
|
||||||
currentPage -= 10;
|
currentPage -= 10;
|
||||||
clampPage();
|
clampPage();
|
||||||
|
// cppcheck-suppress knownConditionTrueFalse
|
||||||
if (currentPage != prevPage) {
|
if (currentPage != prevPage) {
|
||||||
globalReadingSessionTracker().onPageTurn();
|
globalReadingSessionTracker().onPageTurn();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user