From 992e648f64509723d5850cf0916aa632d4fd2a20 Mon Sep 17 00:00:00 2001 From: Daniel Hrabovcak Date: Mon, 25 May 2015 12:32:34 -0400 Subject: [PATCH] Fix compile issues --- src/core/core.cpp | 4 ++-- src/core/coreav.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 60655f497..d801d4638 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1330,8 +1330,8 @@ void Core::resetCallSources() { for (ToxGroupCall& call : groupCalls) { - for (QPair alSources : call) - alDeleteSources(1, alSources.second); + for (QHash::iterator i = call.alSources.begin(); i != call.alSources.end(); ++i) + alDeleteSources(1, &i.value()); call.alSources.clear(); } diff --git a/src/core/coreav.cpp b/src/core/coreav.cpp index 3c12c08c3..3642b1907 100644 --- a/src/core/coreav.cpp +++ b/src/core/coreav.cpp @@ -629,8 +629,8 @@ void Core::leaveGroupCall(int groupId) groupCalls[groupId].active = false; disconnect(groupCalls[groupId].sendAudioTimer,0,0,0); groupCalls[groupId].sendAudioTimer->stop(); - for (QPair alSources : groupCalls[groupId]) - alDeleteSources(1, alSources.second); + for (QHash::iterator i = groupCalls[groupId].alSources.begin(); i != groupCalls[groupId].alSources.end(); ++i) + alDeleteSources(1, &i.value()); groupCalls[groupId].alSources.clear(); Audio::unsuscribeInput(); delete groupCalls[groupId].sendAudioTimer;