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:
@@ -246,7 +246,7 @@ void ScriptEngine::setupEngine()
|
||||
showMessage(_("STARTING SCRIPT DEBUGGER"), LogMisc);
|
||||
if (m_scriptEngine.isNull())
|
||||
m_scriptEngine = Core::ICore::instance()->scriptManager()->scriptEngine();
|
||||
QTC_ASSERT(!m_scriptAgent, /**/);
|
||||
QTC_CHECK(!m_scriptAgent);
|
||||
m_scriptAgent.reset(new ScriptAgent(this, m_scriptEngine.data()));
|
||||
m_scriptEngine->setAgent(m_scriptAgent.data());
|
||||
//m_scriptEngine->setAgent(new ScriptAgent(this, m_scriptEngine.data()));
|
||||
|
||||
Reference in New Issue
Block a user