mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#10649 ApplicationLibCode: Use collection.empty() instead of comparing with size
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ void RicWellPathsImportSsihubFeature::onActionTriggered( bool isChecked )
|
||||
if ( QDialog::Accepted == wellImportwizard.exec() )
|
||||
{
|
||||
QStringList wellPaths = wellImportwizard.absoluteFilePathsToWellPaths();
|
||||
if ( wellPaths.size() > 0 )
|
||||
if ( !wellPaths.empty() )
|
||||
{
|
||||
QStringList errorMessages;
|
||||
app->addWellPathsToModel( wellPaths, &errorMessages );
|
||||
|
||||
@@ -515,7 +515,7 @@ void RiuWellImportWizard::downloadWellPaths()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuWellImportWizard::checkDownloadQueueAndIssueRequests()
|
||||
{
|
||||
if ( m_wellRequestQueue.size() > 0 )
|
||||
if ( !m_wellRequestQueue.empty() )
|
||||
{
|
||||
DownloadEntity firstItem = m_wellRequestQueue[0];
|
||||
m_wellRequestQueue.pop_front();
|
||||
|
||||
Reference in New Issue
Block a user