mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Remove impossible < 0 checks for size_t
This commit is contained in:
committed by
Jakub Melka
parent
6354e4cad1
commit
bbecbf6311
@ -2646,7 +2646,7 @@ PDFAnnotationDefaultAppearance PDFAnnotationDefaultAppearance::parse(const QByte
|
|||||||
|
|
||||||
auto readNumber = [&tokens](size_t index) -> PDFReal
|
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];
|
const PDFLexicalAnalyzer::Token& token = tokens[index];
|
||||||
if (token.type == PDFLexicalAnalyzer::TokenType::Real ||
|
if (token.type == PDFLexicalAnalyzer::TokenType::Real ||
|
||||||
token.type == PDFLexicalAnalyzer::TokenType::Integer)
|
token.type == PDFLexicalAnalyzer::TokenType::Integer)
|
||||||
|
@ -1814,7 +1814,7 @@ void PDFDiffResultNavigator::setResult(const PDFDiffResult* diffResult)
|
|||||||
bool PDFDiffResultNavigator::isSelected() const
|
bool PDFDiffResultNavigator::isSelected() const
|
||||||
{
|
{
|
||||||
const size_t limit = getLimit();
|
const size_t limit = getLimit();
|
||||||
return m_currentIndex >= 0 && m_currentIndex < limit;
|
return m_currentIndex < limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PDFDiffResultNavigator::canGoNext() const
|
bool PDFDiffResultNavigator::canGoNext() const
|
||||||
|
Reference in New Issue
Block a user