forked from qt-creator/qt-creator
Replace Q_ASSERTs with QTC_ASSERTs
or even with QTC_CHECKs. Change-Id: I6df67f088bb2f944f0a1abd751fdb192db2be298 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "branchmodel.h"
|
||||
#include "gitclient.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <vcsbase/vcsbaseoutputwindow.h>
|
||||
|
||||
#include <QtGui/QFont>
|
||||
@@ -103,7 +104,7 @@ public:
|
||||
|
||||
QStringList fullName() const
|
||||
{
|
||||
Q_ASSERT(isLeaf());
|
||||
QTC_ASSERT(isLeaf(), return QStringList());
|
||||
|
||||
QStringList fn;
|
||||
QList<const BranchNode *> nodes;
|
||||
@@ -172,7 +173,7 @@ BranchModel::BranchModel(GitClient *client, QObject *parent) :
|
||||
m_client(client),
|
||||
m_rootNode(new BranchNode)
|
||||
{
|
||||
Q_ASSERT(m_client);
|
||||
QTC_CHECK(m_client);
|
||||
m_rootNode->append(new BranchNode(tr("Local Branches")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user