Intern fix, actions duplicated
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/21 12:14:13 by aortigos #+# #+# */
|
||||
/* Updated: 2026/02/21 12:14:13 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/02/21 12:45:04 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -70,7 +70,7 @@ AForm* Intern::makeForm(const std::string &formName, const std::string &target)
|
||||
typedef AForm* (Intern::*FormCreator)(const std::string&);
|
||||
FormCreator creators[3] = {
|
||||
&Intern::createShrubbery,
|
||||
&Intern::createShrubbery,
|
||||
&Intern::createRobotomy,
|
||||
&Intern::createPardon
|
||||
};
|
||||
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/21 12:14:18 by aortigos #+# #+# */
|
||||
/* Updated: 2026/02/21 12:14:18 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/02/21 12:43:00 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef INTERN_HPP
|
||||
|
||||
# define INTERN_HPP
|
||||
|
||||
# include <iostream>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/21 12:14:52 by aortigos #+# #+# */
|
||||
/* Updated: 2026/02/21 12:14:53 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/02/21 12:46:24 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -28,7 +28,7 @@ int main()
|
||||
Intern intern;
|
||||
|
||||
try {
|
||||
AForm* form = intern.makeForm("shrubbery creation", "home");
|
||||
AForm* form = intern.makeForm("presidential pardon", "home");
|
||||
|
||||
angel.executeForm(*form);
|
||||
angel.signForm(*form);
|
||||
|
||||
Reference in New Issue
Block a user