MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetWeakHttpServerByName

Function GetWeakHttpServerByName

plugins/http/http-server.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251std::weak_ptr<HttpServer> GetWeakHttpServerByName(const std::string &name)
252{
253 for (const auto &s : httpServers) {
254 if (s->Name() == name) {
255 return std::dynamic_pointer_cast<HttpServer>(s);
256 }
257 }
258 return {};
259}
260
261std::weak_ptr<HttpServer> GetWeakHttpServerByQString(const QString &name)
262{

Callers 3

setupFunction · 0.85
SetServerMethod · 0.85

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected