Skip to content

Commit

Permalink
build(CGIHandler): fix compilation errors cause of missing base class…
Browse files Browse the repository at this point in the history
… init
  • Loading branch information
552020 committed May 16, 2024
1 parent 232c69c commit b169f6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CGIHandler.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#include "CGIHandler.hpp"

CGIHandler::CGIHandler(EventManager &eventManager, Connection &connection)
: _connection(connection), _eventManager(eventManager)
: AResponseHandler(), _connection(connection), _eventManager(eventManager)
{
}

// Copy Constructor
CGIHandler::CGIHandler(const CGIHandler &other)
: _FDsRef(other._FDsRef), _pollFd(other._pollFd), _connection(other._connection), _eventManager(other._eventManager)
CGIHandler::CGIHandler(const CGIHandler &other) : AResponseHandler(other), _FDsRef(other._FDsRef), _pollFd(other._pollFd), _connection(other._connection), _eventManager(other._eventManager)
{
// TODO: do we need deep copy here?
}
Expand All @@ -21,6 +20,7 @@ CGIHandler &CGIHandler::operator=(const CGIHandler &other)
{
if (this != &other)
{
AResponseHandler::operator=(other);
_eventManager = other._eventManager;
_FDsRef = other._FDsRef;
_pollFd = other._pollFd;
Expand Down

0 comments on commit b169f6e

Please sign in to comment.