diff --git a/renderdoc/os/posix/android/android_hook.cpp b/renderdoc/os/posix/android/android_hook.cpp index 3e963b0e5..056f79292 100644 --- a/renderdoc/os/posix/android/android_hook.cpp +++ b/renderdoc/os/posix/android/android_hook.cpp @@ -791,13 +791,13 @@ void LibraryHooks::EndHookRegistration() // call the callbacks for any libraries that loaded now. If the library wasn't loaded above then // it can't be loaded, since we only hook system libraries. std::map> callbacks = GetHookInfo().GetHookCallbacks(); - for(const std::pair> &cb : callbacks) + for(auto it = callbacks.begin(); it != callbacks.end(); ++it) { - void *handle = dlopen(cb.first.c_str(), RTLD_GLOBAL); + void *handle = dlopen(it->first.c_str(), RTLD_GLOBAL); if(handle) { - HOOK_DEBUG_PRINT("Calling callbacks for %s", cb.first.c_str()); - for(FunctionLoadCallback callback : cb.second) + HOOK_DEBUG_PRINT("Calling callbacks for %s", it->first.c_str()); + for(FunctionLoadCallback callback : it->second) if(callback) callback(handle); }