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:
hjk
2018-05-30 15:42:51 +02:00
parent 829df213a4
commit 4feb2259d9
29 changed files with 122 additions and 122 deletions

View File

@@ -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();