From f7db8b6f34919e5548c39479ed5a5471bae39e5b Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 23 Oct 2003 01:25:42 +0000 Subject: [PATCH] Se pasa el destructor al .cpp. --- Server/include/plaqui/server/request.h | 2 +- Server/include/plaqui/server/string.h | 2 +- Server/src/request.cpp | 3 +++ Server/src/string.cpp | 5 ++++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Server/include/plaqui/server/request.h b/Server/include/plaqui/server/request.h index 86541bc..d20b85f 100644 --- a/Server/include/plaqui/server/request.h +++ b/Server/include/plaqui/server/request.h @@ -72,7 +72,7 @@ namespace Server { /** * Destructor. */ - virtual ~Request(void) {} + virtual ~Request(void); /** * Agrega variables con un request HTTP. diff --git a/Server/include/plaqui/server/string.h b/Server/include/plaqui/server/string.h index 8ab2b8f..53752e4 100644 --- a/Server/include/plaqui/server/string.h +++ b/Server/include/plaqui/server/string.h @@ -45,7 +45,7 @@ namespace Server { /** * Destructor. */ - virtual ~String(void) {} + virtual ~String(void); /** * Constructor. diff --git a/Server/src/request.cpp b/Server/src/request.cpp index d17ca72..9e6aadf 100644 --- a/Server/src/request.cpp +++ b/Server/src/request.cpp @@ -61,6 +61,9 @@ PlaQui::Server::Request::CHARS_UNRESERVED = CHARS_ALPHANUM + CHARS_MARK; const std::string PlaQui::Server::Request::CHARS_HEX = CHARS_DIGIT + std::string("abcdefABCDEF"); +PlaQui::Server::Request::~Request(void) { +} + void PlaQui::Server::Request::set_request(const std::string& req, const std::string& host, unsigned port) { #ifdef DEBUG diff --git a/Server/src/string.cpp b/Server/src/string.cpp index edc522c..7062bb0 100644 --- a/Server/src/string.cpp +++ b/Server/src/string.cpp @@ -33,7 +33,10 @@ #endif // DEBUG const std::string PlaQui::Server::String::SPACE_CHARS = " \t\n\r"; - + +PlaQui::Server::String::~String(void) { +} + PlaQui::Server::String::String(const std::string& str): std::string(str.c_str()) { } -- 2.43.0