Skip to content

Commit

Permalink
Silence cppcheck false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 47d88e9 commit 95c6834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/hana/qgshanaproviderconnection.cpp
Expand Up @@ -47,6 +47,7 @@ QVariantList QgsHanaProviderResultIterator::nextRowPrivate()
return ret;

ret.reserve( mNumColumns );
// cppcheck-suppress unsignedLessThanZero
for ( unsigned short i = 1; i <= mNumColumns; ++i )
ret.push_back( mResultSet->getValue( i ) );
mNextRow = mResultSet->next();
Expand Down

0 comments on commit 95c6834

Please sign in to comment.