clean: remove sign to the form constructor

This commit is contained in:
Camille Chauvet 2023-09-03 11:18:21 +00:00
parent 077c151636
commit 4198110184
2 changed files with 4 additions and 4 deletions

View File

@ -15,13 +15,13 @@ Form::Form(const Form& src)
*this = 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), _name(name),
_signed(signd), _signed(0),
_to_sign(to_sign), _to_sign(to_sign),
_to_execute(to_execute) _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) if (to_execute > 150 || to_sign < 1)
throw GradeTooLowException(); throw GradeTooLowException();
if (to_execute < 1 || to_sign < 1) if (to_execute < 1 || to_sign < 1)

View File

@ -17,7 +17,7 @@ class Form
public: public:
Form(); 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(const Form& src);
~Form(); ~Form();