From b169f6e38384ad4d74817c373e36ec039c4672da Mon Sep 17 00:00:00 2001 From: 552020 Date: Thu, 16 May 2024 14:33:00 +0200 Subject: [PATCH] build(CGIHandler): fix compilation errors cause of missing base class init --- src/CGIHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CGIHandler.cpp b/src/CGIHandler.cpp index ad65f56a..9b3710ac 100644 --- a/src/CGIHandler.cpp +++ b/src/CGIHandler.cpp @@ -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? } @@ -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;