forked from qt-creator/qt-creator
Debugger: Code cosmetics
Sprinkling in const and ranged for. Change-Id: I5d11d57f64140021397c23734c7373544ebebb6f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -295,7 +295,7 @@ void PdbEngine::refreshModules(const GdbMi &modules)
|
||||
{
|
||||
ModulesHandler *handler = modulesHandler();
|
||||
handler->beginUpdateAll();
|
||||
foreach (const GdbMi &item, modules.children()) {
|
||||
for (const GdbMi &item : modules.children()) {
|
||||
Module module;
|
||||
module.moduleName = item["name"].data();
|
||||
QString path = item["value"].data();
|
||||
@@ -350,7 +350,7 @@ void PdbEngine::refreshSymbols(const GdbMi &symbols)
|
||||
{
|
||||
QString moduleName = symbols["module"].data();
|
||||
Symbols syms;
|
||||
foreach (const GdbMi &item, symbols["symbols"].children()) {
|
||||
for (const GdbMi &item : symbols["symbols"].children()) {
|
||||
Symbol symbol;
|
||||
symbol.name = item["name"].data();
|
||||
syms.append(symbol);
|
||||
@@ -512,7 +512,7 @@ void PdbEngine::refreshStack(const GdbMi &stack)
|
||||
{
|
||||
StackHandler *handler = stackHandler();
|
||||
StackFrames frames;
|
||||
foreach (const GdbMi &item, stack["frames"].children()) {
|
||||
for (const GdbMi &item : stack["frames"].children()) {
|
||||
StackFrame frame;
|
||||
frame.level = item["level"].data();
|
||||
frame.file = item["file"].data();
|
||||
|
||||
Reference in New Issue
Block a user