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 /pulse.h | |
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 'pulse.h')
-rw-r--r-- | pulse.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -228,10 +228,11 @@ class PulseClient { balance_range_ = { min, max }; } - void EnableNotifications(Notifier* notifier); + void SetNotifier(std::unique_ptr<Notifier> notifier); private: - void mainloop_iterate(pa_operation* op); + void WaitOperationComplete(pa_operation* op); + template<class T> T* find_fuzzy(std::vector<T>& haystack, const std::string& needle); void populate_server_info(); |