forked from qt-creator/qt-creator
New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)
Warn if the condition fails, but otherwise don't change the execution flow. Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546 Reviewed-on: http://codereview.qt.nokia.com/2389 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -1113,7 +1113,7 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(DebuggerPlugin *plugin) :
|
||||
qRegisterMetaType<ContextData>("ContextData");
|
||||
qRegisterMetaType<DebuggerStartParameters>("DebuggerStartParameters");
|
||||
|
||||
QTC_ASSERT(!theDebuggerCore, /**/);
|
||||
QTC_CHECK(!theDebuggerCore);
|
||||
theDebuggerCore = this;
|
||||
|
||||
m_plugin = plugin;
|
||||
@@ -1350,7 +1350,7 @@ void DebuggerPluginPrivate::onCurrentProjectChanged(Project *project)
|
||||
Target *target = project->activeTarget();
|
||||
QTC_ASSERT(target, return);
|
||||
activeRc = target->activeRunConfiguration();
|
||||
QTC_ASSERT(activeRc, /**/);
|
||||
QTC_CHECK(activeRc);
|
||||
}
|
||||
for (int i = 0, n = m_snapshotHandler->size(); i != n; ++i) {
|
||||
// Run controls might be deleted during exit.
|
||||
@@ -3148,7 +3148,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
|
||||
SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
SLOT(onCurrentProjectChanged(ProjectExplorer::Project*)));
|
||||
|
||||
QTC_ASSERT(m_coreSettings, /**/);
|
||||
QTC_CHECK(m_coreSettings);
|
||||
m_globalDebuggerOptions->fromSettings(m_coreSettings);
|
||||
m_watchersWindow->setVisible(false);
|
||||
m_returnWindow->setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user