From b63034b551f08ef3e1bf921b3c531e2ce65c266b Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 19 Sep 2019 16:36:43 +0200 Subject: Debugger: Move showModule{Sections,Symbols} to DebuggerEngine A bit closer to where the functions are used. No real change. Change-Id: Icbad68bd31d85caa59980316537ee532faf2d7ef Reviewed-by: Christian Stenger --- src/plugins/debugger/sourceutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/debugger/sourceutils.cpp') diff --git a/src/plugins/debugger/sourceutils.cpp b/src/plugins/debugger/sourceutils.cpp index a08221c4e1..ea50eca8bd 100644 --- a/src/plugins/debugger/sourceutils.cpp +++ b/src/plugins/debugger/sourceutils.cpp @@ -161,7 +161,7 @@ static void blockRecursion(const Overview &overview, // Go backwards in case someone has identical variables in the same scope. // Fixme: loop variables or similar are currently seen in the outer scope for (int s = scope->memberCount() - 1; s >= 0; --s){ - const Symbol *symbol = scope->memberAt(s); + const CPlusPlus::Symbol *symbol = scope->memberAt(s); if (symbol->isDeclaration()) { // Find out about shadowed symbols by bookkeeping // the already seen occurrences in a hash. @@ -197,7 +197,7 @@ QStringList getUninitializedVariables(const Snapshot &snapshot, const Document::Ptr doc = docIt.value(); // Look at symbol at line and find its function. Either it is the // function itself or some expression/variable. - const Symbol *symbolAtLine = doc->lastVisibleSymbolAt(line, 0); + const CPlusPlus::Symbol *symbolAtLine = doc->lastVisibleSymbolAt(line, 0); if (!symbolAtLine) return result; // First figure out the function to do a safety name check -- cgit v1.2.1