move std function

This commit is contained in:
2026-03-20 16:31:30 +03:00
parent 4537e40832
commit 96c22e1184
28 changed files with 145 additions and 131 deletions

View File

@@ -45,7 +45,7 @@ bool PIHTTPServer::registerPath(const PIString & path, PIHTTP::Method method, Re
Endpoint ep;
if (!ep.create(path)) return false;
ep.method = method;
ep.function = functor;
ep.function = std::move(functor);
endpoints[ep.priority] << ep;
return true;
}