forked from qt-creator/qt-creator
Debugger: Modernize
Mostly nullptr instead of 0, but also a few bits of collateral damage. Change-Id: I921991272aca921dcdecf302dfff3716e79dfc24 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -237,7 +237,7 @@ QString GdbEngine::failedToStartMessage()
|
||||
|
||||
// Parse "~:gdb: unknown target exception 0xc0000139 at 0x77bef04e\n"
|
||||
// and return an exception message
|
||||
static QString msgWinException(const QString &data, unsigned *exCodeIn = 0)
|
||||
static QString msgWinException(const QString &data, unsigned *exCodeIn = nullptr)
|
||||
{
|
||||
if (exCodeIn)
|
||||
*exCodeIn = 0;
|
||||
|
||||
@@ -349,7 +349,7 @@ GdbOptionsPageWidget2::GdbOptionsPageWidget2()
|
||||
checkBoxBreakOnAbort->setText(CommonOptionsPage::msgSetBreakpointAtFunction("abort"));
|
||||
checkBoxBreakOnAbort->setToolTip(CommonOptionsPage::msgSetBreakpointAtFunctionToolTip("abort"));
|
||||
|
||||
QCheckBox *checkBoxEnableReverseDebugging = 0;
|
||||
QCheckBox *checkBoxEnableReverseDebugging = nullptr;
|
||||
if (isReverseDebuggingEnabled()) {
|
||||
checkBoxEnableReverseDebugging = new QCheckBox(groupBoxDangerous);
|
||||
checkBoxEnableReverseDebugging->setText(GdbOptionsPage::tr("Enable reverse debugging"));
|
||||
|
||||
Reference in New Issue
Block a user