aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.cc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2016-06-07 12:37:43 -0400
committerDave Reisner <dreisner@archlinux.org>2016-07-17 14:52:39 -0400
commit6bb1f0df2b9c7582a686f09681b91d185e2eb4f2 (patch)
tree9f3d7f3bde902070ef0c34200a1fa17deb2698f9 /ponymix.cc
parent66bec49862142f36eda4227a0b0e586a1b04c3c3 (diff)
downloadmirror-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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ponymix.cc b/ponymix.cc
index fce4611..cdd25e0 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -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);