diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-23 22:50:05 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-23 22:50:05 +0200 |
commit | a6a80f4bf83eaa1894b83755ec8785af5ed4559f (patch) | |
tree | 4635fba7cff12dc8848b19f26d8540d79cb35716 /src/mainwindow/widgets/urllineedit.cpp | |
parent | lib/configuration improvements (diff) | |
download | smolbote-a6a80f4bf83eaa1894b83755ec8785af5ed4559f.tar.xz |
Fix various compiler warnings
Diffstat (limited to 'src/mainwindow/widgets/urllineedit.cpp')
-rw-r--r-- | src/mainwindow/widgets/urllineedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow/widgets/urllineedit.cpp b/src/mainwindow/widgets/urllineedit.cpp index 378945f..5216f31 100644 --- a/src/mainwindow/widgets/urllineedit.cpp +++ b/src/mainwindow/widgets/urllineedit.cpp @@ -40,13 +40,13 @@ UrlLineEdit::UrlLineEdit(QWidget *parent) actions.append(pasteAction); auto *loadAction = new QAction(tr("Paste and load"), this); - connect(loadAction, &QAction::triggered, this, [=]() { + connect(loadAction, &QAction::triggered, this, [this]() { emit addressbar->load(QUrl::fromUserInput(qApp->clipboard()->text())); }); actions.append(loadAction); auto *searchAction = new QAction(tr("Paste and search"), this); - connect(searchAction, &QAction::triggered, this, [=]() { + connect(searchAction, &QAction::triggered, this, [this]() { emit addressbar->search(qApp->clipboard()->text()); }); actions.append(searchAction); |