Debugger: Decrease dependency of protocol structures on Qt

For potential re-use in qtcreatorcdbextension.

Change-Id: Ia5742b61c71fcd04eeaa894ed62218151d528a53
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-02-17 17:44:54 +01:00
parent 6d9aa0f46e
commit e4fb098842
4 changed files with 17 additions and 42 deletions

View File

@@ -461,10 +461,10 @@ void ThreadsHandler::updateThreads(const GdbMi &data)
// m_currentIndex = -1;
// }
const QList<GdbMi> items = data["threads"].children();
const std::vector<GdbMi> &items = data["threads"].children();
const int n = items.size();
for (int index = 0; index != n; ++index) {
const GdbMi item = items.at(index);
const GdbMi item = items[index];
const GdbMi frame = item["frame"];
ThreadData thread;
thread.id = ThreadId(item["id"].toInt());