mirror of https://github.com/JakubMelka/PDF4QT.git
Remove impossible < 0 checks for size_t
This commit is contained in:
parent
6354e4cad1
commit
bbecbf6311
|
@ -2646,7 +2646,7 @@ PDFAnnotationDefaultAppearance PDFAnnotationDefaultAppearance::parse(const QByte
|
|||
|
||||
auto readNumber = [&tokens](size_t index) -> PDFReal
|
||||
{
|
||||
Q_ASSERT(index >= 0 && index < tokens.size());
|
||||
Q_ASSERT(index < tokens.size());
|
||||
const PDFLexicalAnalyzer::Token& token = tokens[index];
|
||||
if (token.type == PDFLexicalAnalyzer::TokenType::Real ||
|
||||
token.type == PDFLexicalAnalyzer::TokenType::Integer)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue