sink_details: Remove unnecessary lambdas

This commit is contained in:
MerryMage 2018-07-02 13:26:14 +01:00
parent 05fc17b88a
commit ce5a5412ae
1 changed files with 3 additions and 3 deletions

View File

@ -21,12 +21,12 @@ namespace AudioCore {
// g_sink_details is ordered in terms of desirability, with the best choice at the top. // g_sink_details is ordered in terms of desirability, with the best choice at the top.
const std::vector<SinkDetails> g_sink_details = { const std::vector<SinkDetails> g_sink_details = {
#ifdef HAVE_CUBEB #ifdef HAVE_CUBEB
{"cubeb", []() { return std::make_unique<CubebSink>(); }}, {"cubeb", &std::make_unique<CubebSink>},
#endif #endif
#ifdef HAVE_SDL2 #ifdef HAVE_SDL2
{"sdl2", []() { return std::make_unique<SDL2Sink>(); }}, {"sdl2", &std::make_unique<SDL2Sink>},
#endif #endif
{"null", []() { return std::make_unique<NullSink>(); }}, {"null", &std::make_unique<NullSink>},
}; };
const SinkDetails& GetSinkDetails(std::string sink_id) { const SinkDetails& GetSinkDetails(std::string sink_id) {