From fab53ac3645f092068f4ad810cfcc562a5def185 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 12 Jan 2012 11:32:45 +0100 Subject: Replace Q_ASSERTs with QTC_ASSERTs or even with QTC_CHECKs. Change-Id: I6df67f088bb2f944f0a1abd751fdb192db2be298 Reviewed-by: hjk --- src/plugins/tasklist/stopmonitoringhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/tasklist') diff --git a/src/plugins/tasklist/stopmonitoringhandler.cpp b/src/plugins/tasklist/stopmonitoringhandler.cpp index 859e0b1f86..3e1f44c173 100644 --- a/src/plugins/tasklist/stopmonitoringhandler.cpp +++ b/src/plugins/tasklist/stopmonitoringhandler.cpp @@ -36,6 +36,7 @@ #include "tasklistplugin.h" #include +#include #include #include @@ -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(); } -- cgit v1.2.1