From 1fdf750ee66ee9e4e872d2810e9ca3bcfa2d555e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 1 Apr 2012 07:18:00 -0700 Subject: More code cleanup. --- src/HttpServer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HttpServer.cc') diff --git a/src/HttpServer.cc b/src/HttpServer.cc index c234096..c9cb0ee 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -39,7 +39,7 @@ class HttpWorker : public Task { static void buildErrorTemplate(const String & str) { m_errorTemplate.setTemplate(str); } private: virtual void Do(); - virtual const char * getName(); + virtual const char * getName() const; bool handleClient(); void sendError(int error, const char * msg, const char * details, bool closeConnection, std::vector extraHeaders, std::vector trace); @@ -586,7 +586,7 @@ void Balau::HttpWorker::Do() { clientStop = !handleClient() || m_socket->isClosed(); } -const char * Balau::HttpWorker::getName() { +const char * Balau::HttpWorker::getName() const { return m_name.to_charp(); } -- cgit v1.2.3