Debugger: Modernize

modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2018-07-23 22:28:49 +02:00
parent babf038ce8
commit 0558db7b54
104 changed files with 718 additions and 820 deletions

View File

@@ -62,15 +62,13 @@ public:
public:
QPointer<BaseTextEditor> editor;
QPointer<DebuggerEngine> engine;
TextMark *locationMark;
TextMark *locationMark = nullptr;
QString path;
QString producer;
};
SourceAgentPrivate::SourceAgentPrivate()
: editor(0)
, locationMark(nullptr)
, producer(QLatin1String("remote"))
: producer(QLatin1String("remote"))
{
}
@@ -78,7 +76,7 @@ SourceAgentPrivate::~SourceAgentPrivate()
{
if (editor)
EditorManager::closeDocument(editor->document());
editor = 0;
editor = nullptr;
delete locationMark;
}
@@ -135,7 +133,7 @@ void SourceAgent::updateLocationMarker()
if (d->locationMark)
d->editor->textDocument()->removeMark(d->locationMark);
delete d->locationMark;
d->locationMark = 0;
d->locationMark = nullptr;
if (d->engine->stackHandler()->currentFrame().file == d->path) {
int lineNumber = d->engine->stackHandler()->currentFrame().line;