Commit 6aebf428 authored by lillypad's avatar lillypad

c++ 11 override and whitespace

parent 2ab2b548
......@@ -70,8 +70,7 @@ using namespace Pistache;
struct HelloHandler : public Http::Handler {
HTTP_PROTOTYPE(HelloHandler)
void onRequest(const Http::Request& request, Http::ResponseWriter writer) {
void onRequest(const Http::Request&, Http::ResponseWriter writer) override{
writer.send(Http::Code::Ok, "Hello, World!");
}
};
......
......@@ -14,7 +14,7 @@ public:
HTTP_PROTOTYPE(HelloHandler)
void onRequest(const Http::Request& request, Http::ResponseWriter response) {
void onRequest(const Http::Request& request, Http::ResponseWriter response) override{
UNUSED(request);
response.send(Pistache::Http::Code::Ok, "Hello World\n");
}
......
Markdown is supported
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