Skip to content

Commit

Permalink
Better check for QString::isEmpty() than for length() == 0
Browse files Browse the repository at this point in the history
Not that it really makes any difference ...
  • Loading branch information
elpaso committed Jan 6, 2019
1 parent c6b0ae0 commit f6c7cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsconfigureshortcutsdialog.cpp
Expand Up @@ -83,7 +83,7 @@ void QgsConfigureShortcutsDialog::populateActions()
continue;
}

if ( actionText.length() == 0 )
if ( actionText.isEmpty() )
{
continue;
}
Expand Down

0 comments on commit f6c7cdb

Please sign in to comment.