#10649 ApplicationLibCode: Use collection.empty() instead of comparing with size

This commit is contained in:
Kristian Bendiksen committed 2023-09-27 10:16:37 +02:00
1 parent 98796b0dd9
commit 959c9d48fa
220 files changed
+432 -431

No files matched your search

@@ -199,7 +199,7 @@ bool RimUserDefinedCalculation::parseExpression()
}
std::vector<QString> variableNames = ExpressionParser::detectReferencedVariables( m_expression );
if ( variableNames.size() < 1 )
if ( variableNames.empty() )
{
RiaLogging::errorInMessageBox( nullptr, "Expression Parser", "Failed to detect any variable names" );
@@ -256,7 +256,7 @@ QString RimUserDefinedCalculation::findLeftHandSide( const QString& expression )
QStringList words = s.split( " " );
if ( words.size() > 0 )
if ( !words.empty() )
{
return words.back();
}