mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Fix warning about implicit std::pair copy in android hook code
This commit is contained in:
@@ -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<rdcstr, rdcarray<FunctionLoadCallback>> callbacks = GetHookInfo().GetHookCallbacks();
|
||||
for(const std::pair<rdcstr, rdcarray<FunctionLoadCallback>> &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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user