forked from qt-creator/qt-creator
Debugger: Go back to QVector in GdbMi
We are overstretching std::vector implementations in some cases of partial self-assignment. Task-number: QTCREATORBUG-15183 Change-Id: I144e9e34df117286a7eef6403e29054d530cacbe Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -36,9 +36,9 @@
|
||||
#include <QString>
|
||||
#include <QJsonValue>
|
||||
#include <QJsonObject>
|
||||
#include <QVector>
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
|
||||
QByteArray m_name;
|
||||
QByteArray m_data;
|
||||
std::vector<GdbMi> m_children;
|
||||
QVector<GdbMi> m_children;
|
||||
|
||||
enum Type { Invalid, Const, Tuple, List };
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
bool isList() const { return m_type == List; }
|
||||
|
||||
const QByteArray &data() const { return m_data; }
|
||||
const std::vector<GdbMi> &children() const { return m_children; }
|
||||
const QVector<GdbMi> &children() const { return m_children; }
|
||||
int childCount() const { return int(m_children.size()); }
|
||||
|
||||
const GdbMi &childAt(int index) const { return m_children[index]; }
|
||||
|
||||
Reference in New Issue
Block a user