forked from qt-creator/qt-creator
Debugger: Fix compiler warnings
Remove unused lambda captures Change-Id: Ibe3cc4477442ea77a86045666b629fee8f27d084 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -812,7 +812,7 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
|
||||
vbox->insertWidget(0, label);
|
||||
};
|
||||
|
||||
const auto addFontSizeAdaptation = [this](QWidget *widget) {
|
||||
const auto addFontSizeAdaptation = [](QWidget *widget) {
|
||||
QObject::connect(TextEditorSettings::instance(), &TextEditorSettings::fontSettingsChanged,
|
||||
[widget](const FontSettings &settings) {
|
||||
if (!debuggerSettings()->fontSizeFollowsEditor.value())
|
||||
|
@@ -120,12 +120,13 @@ bool SourceFilesHandler::setData(const QModelIndex &idx, const QVariant &data, i
|
||||
QModelIndex index = idx.sibling(idx.row(), 0);
|
||||
QString name = index.data().toString();
|
||||
|
||||
auto addAction = [this, menu](const QString &display, bool on, const std::function<void()> &onTriggered) {
|
||||
QAction *act = menu->addAction(display);
|
||||
act->setEnabled(on);
|
||||
QObject::connect(act, &QAction::triggered, onTriggered);
|
||||
return act;
|
||||
};
|
||||
auto addAction =
|
||||
[menu](const QString &display, bool on, const std::function<void()> &onTriggered) {
|
||||
QAction *act = menu->addAction(display);
|
||||
act->setEnabled(on);
|
||||
QObject::connect(act, &QAction::triggered, onTriggered);
|
||||
return act;
|
||||
};
|
||||
|
||||
addAction(tr("Reload Data"), m_engine->debuggerActionsEnabled(),
|
||||
[this] { m_engine->reloadSourceFiles(); });
|
||||
|
Reference in New Issue
Block a user