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:
@@ -445,7 +445,7 @@ void ThreadsHandler::updateThreads(const GdbMi &data)
|
||||
// file="/.../app.cpp",fullname="/../app.cpp",line="1175"},
|
||||
// state="stopped",core="0"}],current-thread-id="1"
|
||||
|
||||
const std::vector<GdbMi> items = data["threads"].children();
|
||||
const QVector<GdbMi> items = data["threads"].children();
|
||||
const int n = int(items.size());
|
||||
for (int index = 0; index != n; ++index) {
|
||||
const GdbMi item = items[index];
|
||||
|
||||
Reference in New Issue
Block a user