From 0c1c37bf3af6d0f83061b089ae0902e69e9372ec Mon Sep 17 00:00:00 2001 From: Vishal Pratap Singh Date: Mon, 12 Oct 2020 23:36:23 +0530 Subject: [PATCH] changed [=,this] to [this] --- Polyhedron/demo/Polyhedron/MainWindow.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index a3c468ae13f..830e9018ad5 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -259,15 +259,10 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren SIGNAL(selectionChanged ( const QItemSelection & , const QItemSelection & ) ), this, SLOT(selectionChanged())); // setup menu filtering - #ifndef CGAL_CXX20 + connect(sceneView->selectionModel(), - QOverload::of(&QItemSelectionModel::selectionChanged), - this, [=](){filterOperations(false);}); - #else - connect(sceneView->selectionModel(), - QOverload::of(&QItemSelectionModel::selectionChanged), - this, [=,this](){filterOperations(false);}); - #endif + QOverload::of(&QItemSelectionModel::selectionChanged), + this, [this](){filterOperations(false);}); sceneView->setContextMenuPolicy(Qt::CustomContextMenu); connect(sceneView, SIGNAL(customContextMenuRequested(const QPoint & )), @@ -371,13 +366,8 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren operationSearchBar.setPlaceholderText("Filter..."); searchAction->setDefaultWidget(&operationSearchBar); - #ifndef CGAL_CXX20 connect(&operationSearchBar, &QLineEdit::textChanged, - this, [=](){filterOperations(true);}); - #else - connect(&operationSearchBar, &QLineEdit::textChanged, - this, [=,this](){filterOperations(true);}); - #endif + this, [this](){filterOperations(true);}); loadPlugins(); accepted_keywords.clear();