aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2018-05-25 15:12:34 +0200
committerhjk <[email protected]>2018-05-28 06:52:43 +0000
commitdb1174b6b8d28c0ec9e543e02a413ded0a326aad (patch)
tree15835423b4849e3d5bba724fbaba61baec0d9835 /src/plugins/debugger/debuggerplugin.cpp
parenta4d1af982889e3c625243150e57f061bf2d4a4cc (diff)
Debugger: Remove a parameter with fixed value
Internal::displayDebugger's updateEngine parameter was always true. Change-Id: I27e91b7327ef7f4ccfb7718ad47fe5316660ea17 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index f92b55d6ea9..41105707043 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -747,7 +747,7 @@ public:
void runControlFinished(DebuggerRunTool *runTool);
void remoteCommand(const QStringList &options);
- void displayDebugger(DebuggerRunTool *runTool, bool updateEngine = true);
+ void displayDebugger(DebuggerRunTool *runTool);
void dumpLog();
void cleanupViews();
@@ -2379,7 +2379,7 @@ void DebuggerPluginPrivate::requestMark(TextEditorWidget *widget, int lineNumber
}
// If updateEngine is set, the engine will update its threads/modules and so forth.
-void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool, bool updateEngine)
+void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool)
{
QTC_ASSERT(runTool, return);
DebuggerEngine *engine = runTool ? runTool->engine() : dummyEngine();
@@ -2387,8 +2387,7 @@ void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool, bool updat
disconnectEngine();
connectEngine(runTool);
- if (updateEngine)
- engine->updateAll();
+ engine->updateAll();
engine->updateViews();
}
@@ -3197,9 +3196,9 @@ void runControlFinished(DebuggerRunTool *runTool)
dd->runControlFinished(runTool);
}
-void displayDebugger(DebuggerRunTool *runTool, bool updateEngine)
+void displayDebugger(DebuggerRunTool *runTool)
{
- dd->displayDebugger(runTool, updateEngine);
+ dd->displayDebugger(runTool);
}
void synchronizeBreakpoints()