Better check for QString::isEmpty() than for length() == 0

Not that it really makes any difference ...
This commit is contained in:
Alessandro Pasotti 2019-01-06 17:54:03 +01:00
parent c6b0ae0aaf
commit f6c7cdb4c8

View File

@ -83,7 +83,7 @@ void QgsConfigureShortcutsDialog::populateActions()
continue;
}
if ( actionText.length() == 0 )
if ( actionText.isEmpty() )
{
continue;
}