Use isEmpty()
This commit is contained in:
parent
7931bdccdd
commit
e7329b95ed
@ -766,7 +766,7 @@ FbConfigInfo *getConfig(xcb_visualid_t visual)
|
||||
|
||||
FbConfigInfo *info = nullptr;
|
||||
|
||||
if (candidates.size() > 0) {
|
||||
if (!candidates.isEmpty()) {
|
||||
const FBConfig &candidate = candidates.front();
|
||||
|
||||
info = new FbConfigInfo;
|
||||
|
@ -184,7 +184,7 @@ void AppletInterface::init()
|
||||
|
||||
if (m_args.count() == 1) {
|
||||
emit externalData(QString(), m_args.first());
|
||||
} else if (m_args.count() > 0) {
|
||||
} else if (!m_args.isEmpty()) {
|
||||
emit externalData(QString(), m_args);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user