aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-05 15:31:03 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-05 15:31:03 -0600
commit7137a652b136d375637390b1659007104e96b61f (patch)
tree14847e2934f3ff4fcdccfbd39f9e2a23fe6781cc
parentb96ba1beb969e7116881137d326967b48044845b (diff)
downloadayatana-indicator-datetime-7137a652b136d375637390b1659007104e96b61f.tar.gz
ayatana-indicator-datetime-7137a652b136d375637390b1659007104e96b61f.tar.bz2
ayatana-indicator-datetime-7137a652b136d375637390b1659007104e96b61f.zip
copyediting: make the Snap lambdas a little easier to read.
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7e09fda..daf2a22 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -68,9 +68,9 @@ main(int /*argc*/, char** /*argv*/)
ClockWatcherImpl clock_watcher(state);
Snap snap;
clock_watcher.alarm_reached().connect([&snap](const Appointment& appt){
- snap(appt,
- [](const Appointment& a){url_dispatch_send(a.url.c_str(), nullptr, nullptr);},
- [](const Appointment&){});
+ auto snap_show = [](const Appointment& a){url_dispatch_send(a.url.c_str(), nullptr, nullptr);};
+ auto snap_dismiss = [](const Appointment&){};
+ snap(appt, snap_show, snap_dismiss);
});
// create the menus