Commit 6d0d2ae4 authored by Diogo Silva's avatar Diogo Silva
Browse files

MicroHttpdServer: added auto

parent 54919d65
...@@ -36,7 +36,7 @@ int httpRequestCallback(void* cls, MHD_Connection* c, const char* url, ...@@ -36,7 +36,7 @@ int httpRequestCallback(void* cls, MHD_Connection* c, const char* url,
MicroHttpdServer* server = static_cast<MicroHttpdServer*>(cls); MicroHttpdServer* server = static_cast<MicroHttpdServer*>(cls);
MicroHttpdServer::Connection connection(c, url); MicroHttpdServer::Connection connection(c, url);
auto response = server->callback()->receivedConnection(*server, connection); auto response = server->callback()->receivedConnection(*server, connection);
MicroHttpdServer::Response* micro_response_ptr = auto micro_response_ptr =
static_cast<MicroHttpdServer::Response*>(response.get()); static_cast<MicroHttpdServer::Response*>(response.get());
micro_response_ptr->send(connection); micro_response_ptr->send(connection);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment