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:
@@ -41,7 +41,7 @@ namespace Internal {
|
||||
class ThreadId
|
||||
{
|
||||
public:
|
||||
ThreadId() : m_id(-1) {}
|
||||
ThreadId() = default;
|
||||
explicit ThreadId(qint64 id) : m_id(id) {}
|
||||
|
||||
bool isValid() const { return m_id != -1; }
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
bool operator!=(const ThreadId other) const { return m_id != other.m_id; }
|
||||
|
||||
private:
|
||||
qint64 m_id;
|
||||
qint64 m_id = -1;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -62,13 +62,7 @@ private:
|
||||
/*! A structure containing information about a single thread. */
|
||||
struct ThreadData
|
||||
{
|
||||
ThreadData()
|
||||
{
|
||||
frameLevel = -1;
|
||||
lineNumber = -1;
|
||||
address = 0;
|
||||
stopped = true;
|
||||
}
|
||||
ThreadData() = default;
|
||||
|
||||
enum {
|
||||
IdColumn,
|
||||
@@ -92,12 +86,12 @@ struct ThreadData
|
||||
QString groupId;
|
||||
QString targetId;
|
||||
QString core;
|
||||
bool stopped;
|
||||
bool stopped = true;
|
||||
|
||||
// State information when stopped.
|
||||
qint32 frameLevel;
|
||||
qint32 lineNumber;
|
||||
quint64 address;
|
||||
qint32 frameLevel = -1;
|
||||
qint32 lineNumber = -1;
|
||||
quint64 address = 0;
|
||||
QString function;
|
||||
QString module;
|
||||
QString fileName;
|
||||
@@ -106,7 +100,7 @@ struct ThreadData
|
||||
QString name;
|
||||
};
|
||||
|
||||
typedef QVector<ThreadData> Threads;
|
||||
using Threads = QVector<ThreadData>;
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
Reference in New Issue
Block a user