diff --git a/src/audio_core/sink_details.h b/src/audio_core/sink_details.h index 17ecd1e939..4e49f7f052 100644 --- a/src/audio_core/sink_details.h +++ b/src/audio_core/sink_details.h @@ -6,6 +6,7 @@ #include #include +#include #include namespace AudioCore { @@ -15,7 +16,7 @@ class Sink; struct SinkDetails { SinkDetails(const char* id_, std::function(std::string)> factory_, std::function()> list_devices_) - : id(id_), factory(factory_), list_devices(list_devices_) {} + : id(id_), factory(std::move(factory_)), list_devices(std::move(list_devices_)) {} /// Name for this sink. const char* id;