forked from qt-creator/qt-creator
Use isEmpty() vs "count() == 0"
Change-Id: I9b3103fbc4e881693039c1a5e81f0d2b97803978 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Laurent Montel
parent
65e22d5a0a
commit
f3c8a2db1e
@@ -136,7 +136,7 @@ void CMakeTargetNode::setTargetInformation(const QList<Utils::FileName> &artifac
|
||||
const QString &type)
|
||||
{
|
||||
m_tooltip = QCoreApplication::translate("CMakeTargetNode", "Target type: ") + type + "<br>";
|
||||
if (artifacts.count() == 0) {
|
||||
if (artifacts.isEmpty()) {
|
||||
m_tooltip += QCoreApplication::translate("CMakeTargetNode", "No build artifacts");
|
||||
} else {
|
||||
const QStringList tmp = Utils::transform(artifacts, &Utils::FileName::toUserOutput);
|
||||
|
||||
Reference in New Issue
Block a user