From 419811018477999ed436a8b737f0de58d5ec9cd8 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Sun, 3 Sep 2023 11:18:21 +0000 Subject: [PATCH] clean: remove sign to the form constructor --- ex01/src/Form.cpp | 6 +++--- ex01/src/Form.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ex01/src/Form.cpp b/ex01/src/Form.cpp index 45d02fc..d80c798 100644 --- a/ex01/src/Form.cpp +++ b/ex01/src/Form.cpp @@ -15,13 +15,13 @@ Form::Form(const Form& src) *this = src; } -Form::Form(const std::string& name, bool signd, int to_execute, int to_sign): +Form::Form(const std::string& name, int to_execute, int to_sign): _name(name), - _signed(signd), + _signed(0), _to_sign(to_sign), _to_execute(to_execute) { - std::cout << "Form(" << name << ", " << signd << ", " << to_execute << ", " << to_sign << ")" << std::endl; + std::cout << "Form(" << name << ", " << to_execute << ", " << to_sign << ")" << std::endl; if (to_execute > 150 || to_sign < 1) throw GradeTooLowException(); if (to_execute < 1 || to_sign < 1) diff --git a/ex01/src/Form.hpp b/ex01/src/Form.hpp index 76c9872..9d359b7 100644 --- a/ex01/src/Form.hpp +++ b/ex01/src/Form.hpp @@ -17,7 +17,7 @@ class Form public: Form(); - Form(const std::string& name, bool signd, int to_execute, int to_sign); + Form(const std::string& name, int to_execute, int to_sign); Form(const Form& src); ~Form();