From d28c0eb5568180b143763fa5648e36d20d7fd575 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 1 Nov 2018 08:41:23 -0700 Subject: Avoid uniform initialization with references Also doesn't work with GCC 4.x --- Alc/backends/pulseaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index 004425ce..bdcf3cb8 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -602,7 +602,7 @@ static void PulsePlayback_deviceCallback(pa_context *UNUSED(context), const pa_s return; PlaybackDevices.emplace_back(); - DevMap &newentry{PlaybackDevices.back()}; + DevMap &newentry = PlaybackDevices.back(); int count{0}; while(1) @@ -1317,7 +1317,7 @@ static void PulseCapture_deviceCallback(pa_context *UNUSED(context), const pa_so return; CaptureDevices.emplace_back(); - DevMap &newentry{CaptureDevices.back()}; + DevMap &newentry = CaptureDevices.back(); int count{0}; while(1) -- cgit v1.2.3