Fix unused lambda capture.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-02 16:43:02 +03:00
parent 58560bf5e6
commit fe5a58beef

View file

@ -2977,7 +2977,7 @@ void TMainWindow::CreateWindowMenu(QMenu *menu)
SCASSERT(menu != nullptr) SCASSERT(menu != nullptr)
QAction *action = menu->addAction(tr("&New Window")); QAction *action = menu->addAction(tr("&New Window"));
connect(action, &QAction::triggered, this, [this]() connect(action, &QAction::triggered, this, []()
{ {
qApp->NewMainWindow(); qApp->NewMainWindow();
qApp->MainWindow()->activateWindow(); qApp->MainWindow()->activateWindow();
@ -3237,7 +3237,7 @@ void TMainWindow::ImportMultisizeMeasurements(const QxtCsvModel &csv)
return; return;
} }
auto ConverToDouble = [this](QString text, const QString &error) auto ConverToDouble = [](QString text, const QString &error)
{ {
text = VTranslateVars::TryFormulaFromUser(text, qApp->Settings()->GetOsSeparator()); text = VTranslateVars::TryFormulaFromUser(text, qApp->Settings()->GetOsSeparator());
bool ok = false; bool ok = false;