forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user