From cb10b61d34a4d29437f1569a99e35bd4b7c52c4b Mon Sep 17 00:00:00 2001 From: Matias Hilden Date: Sun, 8 Dec 2019 13:48:25 +0200 Subject: [PATCH] fix leftover macro loop in JACK sound driver --- src/arch/Sound/RageSoundDriver_JACK.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/arch/Sound/RageSoundDriver_JACK.cpp b/src/arch/Sound/RageSoundDriver_JACK.cpp index f0b291173e..5a68402fbe 100644 --- a/src/arch/Sound/RageSoundDriver_JACK.cpp +++ b/src/arch/Sound/RageSoundDriver_JACK.cpp @@ -4,7 +4,6 @@ #include "RageUtil.h" #include "PrefsManager.h" #include "ProductInfo.h" -#include "Foreach.h" REGISTER_SOUND_DRIVER_CLASS( JACK ); @@ -144,9 +143,9 @@ RString RageSoundDriver_JACK::ConnectPorts() // jack_port_name to use their canonical name. (I'm not sure // if that second step is necessary, I've seen something about // "aliases" in the docs.) - FOREACH( RString, portNames, portName ) + for ( RString const &portName : portNames ) { - jack_port_t *out = jack_port_by_name( client, *portName ); + jack_port_t *out = jack_port_by_name( client, portName ); // Make sure the port is a sink. if( ! ( jack_port_flags( out ) & JackPortIsInput ) ) continue;