summaryrefslogtreecommitdiff
path: root/launcher
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-10-31 13:55:14 -0700
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-10-31 13:55:14 -0700
commita9a44204506cb98ed665e3f94c060058484e57e5 (patch)
tree27c4ac4c4e25617548c0755f8d95829fe8c277a5 /launcher
parente4b01bd782e1c4adf7e3a7e950c723fa3a8b9b1c (diff)
LauncherController: better lambdas
(bzr r3347.3.15)
Diffstat (limited to 'launcher')
-rw-r--r--launcher/LauncherController.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/LauncherController.cpp b/launcher/LauncherController.cpp
index e4df86642..6719e99aa 100644
--- a/launcher/LauncherController.cpp
+++ b/launcher/LauncherController.cpp
@@ -1065,7 +1065,7 @@ Controller::Controller(XdndManager::Ptr const& xdnd_manager, ui::EdgeBarrierCont
, multiple_launchers(true)
, pimpl(new Impl(this, xdnd_manager, edge_barriers))
{
- multiple_launchers.changed.connect([&](bool value) -> void {
+ multiple_launchers.changed.connect([this] (bool value) {
UScreen* uscreen = UScreen::GetDefault();
auto monitors = uscreen->GetMonitors();
int primary = uscreen->GetPrimaryMonitor();
@@ -1164,7 +1164,7 @@ void Controller::HandleLauncherKeyPress(int when)
{
pimpl->launcher_key_press_time_ = when;
- auto show_launcher = [&]()
+ auto show_launcher = [this]
{
if (pimpl->keyboard_launcher_.IsNull())
pimpl->keyboard_launcher_ = pimpl->CurrentLauncher();
@@ -1177,7 +1177,7 @@ void Controller::HandleLauncherKeyPress(int when)
};
pimpl->sources_.AddTimeout(options()->super_tap_duration, show_launcher, local::KEYPRESS_TIMEOUT);
- auto show_shortcuts = [&]()
+ auto show_shortcuts = [this]
{
if (!pimpl->launcher_keynav)
{
@@ -1233,7 +1233,7 @@ void Controller::HandleLauncherKeyRelease(bool was_tap, int when)
{
int time_left = local::launcher_minimum_show_duration - ms_since_show;
- auto hide_launcher = [&]()
+ auto hide_launcher = [this]
{
if (pimpl->keyboard_launcher_.IsValid())
{