diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-02-05 15:31:03 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-02-05 15:31:03 -0600 |
commit | 7137a652b136d375637390b1659007104e96b61f (patch) | |
tree | 14847e2934f3ff4fcdccfbd39f9e2a23fe6781cc | |
parent | b96ba1beb969e7116881137d326967b48044845b (diff) | |
download | ayatana-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.cpp | 6 |
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 |