RequestHandler object is now returned as reference rather than as pointer. Memory handling should be more clear by that change.
This commit is contained in:
+2
-4
@@ -61,10 +61,8 @@ public:
|
||||
ioService.stop();
|
||||
}
|
||||
|
||||
|
||||
|
||||
RequestHandler * GetRequestHandlerPtr() {
|
||||
return &requestHandler;
|
||||
RequestHandler & GetRequestHandlerPtr() {
|
||||
return requestHandler;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user