From ce5a5412ae0a30131db6b194616b9d3fd3063fc7 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Mon, 2 Jul 2018 13:26:14 +0100 Subject: [PATCH] sink_details: Remove unnecessary lambdas --- src/audio_core/sink_details.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cpp index 2a51b2b2b2..1ccf813bb7 100644 --- a/src/audio_core/sink_details.cpp +++ b/src/audio_core/sink_details.cpp @@ -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 g_sink_details = { #ifdef HAVE_CUBEB - {"cubeb", []() { return std::make_unique(); }}, + {"cubeb", &std::make_unique}, #endif #ifdef HAVE_SDL2 - {"sdl2", []() { return std::make_unique(); }}, + {"sdl2", &std::make_unique}, #endif - {"null", []() { return std::make_unique(); }}, + {"null", &std::make_unique}, }; const SinkDetails& GetSinkDetails(std::string sink_id) {