Use isEmpty()

This commit is contained in:
Laurent Montel 2018-11-30 07:58:18 +01:00
parent 7931bdccdd
commit e7329b95ed
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}
}