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:
@@ -36,6 +36,7 @@
|
||||
#include "tasklistplugin.h"
|
||||
|
||||
#include <projectexplorer/task.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QtGui/QAction>
|
||||
#include <QtCore/QCoreApplication>
|
||||
@@ -61,7 +62,7 @@ bool StopMonitoringHandler::canHandle(const ProjectExplorer::Task &task)
|
||||
|
||||
void StopMonitoringHandler::handle(const ProjectExplorer::Task &task)
|
||||
{
|
||||
Q_ASSERT(canHandle(task));
|
||||
QTC_ASSERT(canHandle(task), return);
|
||||
Q_UNUSED(task);
|
||||
TaskList::TaskListPlugin::instance()->stopMonitoring();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user