diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio_core/sink_details.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/sink_details.h b/src/audio_core/sink_details.h index aa8aae1a9..4f9027762 100644 --- a/src/audio_core/sink_details.h +++ b/src/audio_core/sink_details.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <functional> | 7 | #include <functional> |
| 8 | #include <memory> | 8 | #include <memory> |
| 9 | #include <utility> | ||
| 9 | #include <vector> | 10 | #include <vector> |
| 10 | 11 | ||
| 11 | namespace AudioCore { | 12 | namespace AudioCore { |
| @@ -15,7 +16,7 @@ class Sink; | |||
| 15 | struct SinkDetails { | 16 | struct SinkDetails { |
| 16 | SinkDetails(const char* id_, std::function<std::unique_ptr<Sink>(std::string)> factory_, | 17 | SinkDetails(const char* id_, std::function<std::unique_ptr<Sink>(std::string)> factory_, |
| 17 | std::function<std::vector<std::string>()> list_devices_) | 18 | std::function<std::vector<std::string>()> list_devices_) |
| 18 | : id(id_), factory(factory_), list_devices(list_devices_) {} | 19 | : id(id_), factory(std::move(factory_)), list_devices(std::move(list_devices_)) {} |
| 19 | 20 | ||
| 20 | /// Name for this sink. | 21 | /// Name for this sink. |
| 21 | const char* id; | 22 | const char* id; |