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.
const std::vector<SinkDetails> g_sink_details = {
#ifdef HAVE_CUBEB
{"cubeb", []() { return std::make_unique<CubebSink>(); }},
{"cubeb", &std::make_unique<CubebSink>},
#endif
#ifdef HAVE_SDL2
{"sdl2", []() { return std::make_unique<SDL2Sink>(); }},
{"sdl2", &std::make_unique<SDL2Sink>},
#endif
{"null", []() { return std::make_unique<NullSink>(); }},
{"null", &std::make_unique<NullSink>},
};
const SinkDetails& GetSinkDetails(std::string sink_id) {