diff options
author | Dave Reisner <dreisner@archlinux.org> | 2016-06-07 12:37:43 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2016-07-17 14:52:39 -0400 |
commit | 6bb1f0df2b9c7582a686f09681b91d185e2eb4f2 (patch) | |
tree | 9f3d7f3bde902070ef0c34200a1fa17deb2698f9 /ponymix.cc | |
parent | 66bec49862142f36eda4227a0b0e586a1b04c3c3 (diff) | |
download | mirror-ponymix-6bb1f0df2b9c7582a686f09681b91d185e2eb4f2.tar.gz mirror-ponymix-6bb1f0df2b9c7582a686f09681b91d185e2eb4f2.tar.bz2 mirror-ponymix-6bb1f0df2b9c7582a686f09681b91d185e2eb4f2.zip |
more c++11/c++14 features
- use std::move instead of std::swap
- use assignment instead of memcpy
- wrap operations in WaitOperationComplete (eh, not really c++11)
- prefer unique_ptr assignment instead of reset
Diffstat (limited to 'ponymix.cc')
-rw-r--r-- | ponymix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -667,11 +667,11 @@ int main(int argc, char* argv[]) { #ifdef HAVE_NOTIFY if (opt_notify) { - ponymix.EnableNotifications(new LibnotifyNotifier); + ponymix.SetNotifier(std::make_unique<LibnotifyNotifier>()); } else #endif { - ponymix.EnableNotifications(new CommandLineNotifier); + ponymix.SetNotifier(std::make_unique<CommandLineNotifier>()); } return CommandDispatch(ponymix, argc, argv); |