Avoid uniform initialization with references

Also doesn't work with GCC 4.x
This commit is contained in:
Chris Robinson
2018-11-01 08:41:23 -07:00
parent 48f877e859
commit d28c0eb556
+2 -2
View File
@@ -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)