From 5a58a90cef04ef3a807fea22f4c46e6eb3c9085d Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 13 Aug 2020 06:52:41 +0100 Subject: [PATCH] Fix build with old compilers Signed-off-by: falkTX --- source/native-plugins/xycontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/native-plugins/xycontroller.cpp b/source/native-plugins/xycontroller.cpp index a0cd3d5a6..3c1cfcde6 100644 --- a/source/native-plugins/xycontroller.cpp +++ b/source/native-plugins/xycontroller.cpp @@ -131,9 +131,9 @@ protected: carla_zeroStruct(channels); - for (const water::String chan : chans) + for (const water::String *it=chans.begin(), *end=chans.end(); it != end; ++it) { - const int ichan = std::atoi(chan.toRawUTF8()); + const int ichan = std::atoi((*it).toRawUTF8()); CARLA_SAFE_ASSERT_INT_CONTINUE(ichan >= 1 && ichan <= 16, ichan); channels[ichan-1] = true;