summary refs log tree commit diff
path: root/src/dialogs/CreateRoom.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
commitf95998a64bebcb12ffe07fcb6f23cdabff434641 (patch)
tree3a2388ebd9a271f59e3c8a8d36bb906c40fe3386 /src/dialogs/CreateRoom.cc
parentScale down the preview image to fit in the application window (diff)
downloadnheko-f95998a64bebcb12ffe07fcb6f23cdabff434641.tar.xz
Be explicit about the captured parameters in lambdas
Diffstat (limited to 'src/dialogs/CreateRoom.cc')
-rw-r--r--src/dialogs/CreateRoom.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dialogs/CreateRoom.cc b/src/dialogs/CreateRoom.cc

index 0bda0d00..8c2cc641 100644 --- a/src/dialogs/CreateRoom.cc +++ b/src/dialogs/CreateRoom.cc
@@ -93,7 +93,7 @@ CreateRoom::CreateRoom(QWidget *parent) layout->addLayout(directLayout); layout->addLayout(buttonLayout); - connect(confirmBtn_, &QPushButton::clicked, this, [=]() { + connect(confirmBtn_, &QPushButton::clicked, this, [this]() { request_.name = nameInput_->text().toStdString(); request_.topic = topicInput_->text().toStdString(); request_.room_alias_name = aliasInput_->text().toStdString(); @@ -103,7 +103,7 @@ CreateRoom::CreateRoom(QWidget *parent) clearFields(); }); - connect(cancelBtn_, &QPushButton::clicked, this, [=]() { + connect(cancelBtn_, &QPushButton::clicked, this, [this]() { emit closing(false, request_); clearFields(); @@ -111,7 +111,7 @@ CreateRoom::CreateRoom(QWidget *parent) connect(visibilityCombo_, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::activated), - [=](const QString &text) { + [this](const QString &text) { if (text == "Private") { request_.visibility = mtx::requests::Visibility::Private; } else { @@ -121,7 +121,7 @@ CreateRoom::CreateRoom(QWidget *parent) connect(presetCombo_, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::activated), - [=](const QString &text) { + [this](const QString &text) { if (text == "Private Chat") { request_.preset = mtx::requests::Preset::PrivateChat; } else if (text == "Public Chat") { @@ -131,7 +131,7 @@ CreateRoom::CreateRoom(QWidget *parent) } }); - connect(directToggle_, &Toggle::toggled, this, [=](bool isDisabled) { + connect(directToggle_, &Toggle::toggled, this, [this](bool isDisabled) { request_.is_direct = !isDisabled; }); }