MCPcopy Create free account
hub / github.com/baldurk/renderdoc / AddRemoteHost

Method AddRemoteHost

qrenderdoc/Code/Interface/PersistantConfig.cpp:353–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void PersistantConfig::AddRemoteHost(RemoteHost host)
354{
355 if(!host.IsValid())
356 return;
357
358 QMutexLocker autolock(&RemoteHostLock);
359
360 // don't add duplicates
361 for(size_t i = 0; i < RemoteHostList.size(); i++)
362 {
363 if(RemoteHostList[i] == host)
364 {
365 RemoteHostList[i] = host;
366 return;
367 }
368 }
369
370 RemoteHostList.push_back(host);
371}
372
373void PersistantConfig::RemoveRemoteHost(RemoteHost host)
374{

Callers 1

addNewHostMethod · 0.45

Calls 3

IsValidMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected