myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [2886] Code optimizations.


From: Giuseppe Scrivano
Subject: [myserver-commit] [2886] Code optimizations.
Date: Thu, 16 Oct 2008 20:56:43 +0000

Revision: 2886
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2886
Author:   gscrivano
Date:     2008-10-16 20:56:42 +0000 (Thu, 16 Oct 2008)

Log Message:
-----------
Code optimizations.

Modified Paths:
--------------
    trunk/myserver/include/server/server.h
    trunk/myserver/src/protocol/http/http_request.cpp
    trunk/myserver/src/protocol/http/http_response.cpp

Modified: trunk/myserver/include/server/server.h
===================================================================
--- trunk/myserver/include/server/server.h      2008-10-15 22:54:21 UTC (rev 
2885)
+++ trunk/myserver/include/server/server.h      2008-10-16 20:56:42 UTC (rev 
2886)
@@ -77,7 +77,7 @@
   bool stopServer(){return mustEndServer;}
   HomeDir* getHomeDir();
   static void createInstance();
-  static Server* getInstance()
+  static inline Server* getInstance()
   {
     return instance;
   }

Modified: trunk/myserver/src/protocol/http/http_request.cpp
===================================================================
--- trunk/myserver/src/protocol/http/http_request.cpp   2008-10-15 22:54:21 UTC 
(rev 2885)
+++ trunk/myserver/src/protocol/http/http_request.cpp   2008-10-16 20:56:42 UTC 
(rev 2886)
@@ -37,7 +37,9 @@
  */
 HttpRequestHeader::~HttpRequestHeader()
 {
-  free();
+  HashMap<string, HttpRequestHeader::Entry*>::Iterator it = other.begin();
+  for(; it != other.end(); it++)
+    delete (*it);
 }
 
 /*!

Modified: trunk/myserver/src/protocol/http/http_response.cpp
===================================================================
--- trunk/myserver/src/protocol/http/http_response.cpp  2008-10-15 22:54:21 UTC 
(rev 2885)
+++ trunk/myserver/src/protocol/http/http_response.cpp  2008-10-16 20:56:42 UTC 
(rev 2886)
@@ -36,7 +36,9 @@
  */
 HttpResponseHeader::~HttpResponseHeader()
 {
-  free();
+  HashMap<string, HttpResponseHeader::Entry*>::Iterator it = other.begin();
+  for(;it != other.end(); it++)
+    delete (*it);
 }
 
 /*!






reply via email to

[Prev in Thread] Current Thread [Next in Thread]