forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -98,7 +98,7 @@ Macro& Macro::operator=(const Macro &other)
|
||||
|
||||
bool Macro::load(QString fileName)
|
||||
{
|
||||
if (d->events.count())
|
||||
if (!d->events.isEmpty())
|
||||
return true; // the macro is not empty
|
||||
|
||||
// Take the current filename if the parameter is null
|
||||
|
||||
Reference in New Issue
Block a user