Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
4d6f8028
Commit
4d6f8028
authored
Jun 30, 2009
by
hjk
Browse files
debugger: replace a Q_ASSERT by QTC_ASSERT
parent
04c2a73d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerrunner.cpp
View file @
4d6f8028
...
...
@@ -58,8 +58,8 @@ using ProjectExplorer::ApplicationRunConfiguration;
////////////////////////////////////////////////////////////////////////
// A factory to create DebuggerRunControls
DebuggerRunner
::
DebuggerRunner
(
DebuggerManager
*
manager
)
:
m_manager
(
manager
)
DebuggerRunner
::
DebuggerRunner
(
DebuggerManager
*
manager
)
:
m_manager
(
manager
)
{}
bool
DebuggerRunner
::
canRun
(
RunConfigurationPtr
runConfiguration
,
const
QString
&
mode
)
...
...
@@ -73,7 +73,7 @@ QString DebuggerRunner::displayName() const
return
tr
(
"Debug"
);
}
RunControl
*
DebuggerRunner
::
run
(
RunConfigurationPtr
runConfiguration
,
RunControl
*
DebuggerRunner
::
run
(
RunConfigurationPtr
runConfiguration
,
const
QString
&
mode
,
const
QSharedPointer
<
DebuggerStartParameters
>
&
sp
,
DebuggerStartMode
startMode
)
...
...
@@ -81,13 +81,13 @@ RunControl* DebuggerRunner::run(RunConfigurationPtr runConfiguration,
QTC_ASSERT
(
mode
==
ProjectExplorer
::
Constants
::
DEBUGMODE
,
return
0
);
ApplicationRunConfigurationPtr
rc
=
runConfiguration
.
dynamicCast
<
ApplicationRunConfiguration
>
();
Q_ASSERT
(
!
rc
.
isNull
());
Q
TC
_ASSERT
(
!
rc
.
isNull
()
,
return
0
);
//qDebug() << "***** Debugging" << rc->name() << rc->executable();
DebuggerRunControl
*
runControl
=
new
DebuggerRunControl
(
m_manager
,
startMode
,
sp
,
rc
);
return
runControl
;
}
RunControl
*
DebuggerRunner
::
run
(
RunConfigurationPtr
runConfiguration
,
RunControl
*
DebuggerRunner
::
run
(
RunConfigurationPtr
runConfiguration
,
const
QString
&
mode
)
{
const
QSharedPointer
<
DebuggerStartParameters
>
sp
(
new
DebuggerStartParameters
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment