Remove impossible < 0 checks for size_t

This commit is contained in:
Nyall Dawson
2024-01-12 08:09:44 +10:00
committed by Jakub Melka
parent 6354e4cad1
commit bbecbf6311
2 changed files with 2 additions and 2 deletions

View File

@ -1814,7 +1814,7 @@ void PDFDiffResultNavigator::setResult(const PDFDiffResult* diffResult)
bool PDFDiffResultNavigator::isSelected() const
{
const size_t limit = getLimit();
return m_currentIndex >= 0 && m_currentIndex < limit;
return m_currentIndex < limit;
}
bool PDFDiffResultNavigator::canGoNext() const