Intern fix, actions duplicated

This commit is contained in:
2026-02-21 12:47:19 +01:00
parent a278e678c8
commit aaa9688308
3 changed files with 6 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:14:13 by aortigos #+# #+# */ /* 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&); typedef AForm* (Intern::*FormCreator)(const std::string&);
FormCreator creators[3] = { FormCreator creators[3] = {
&Intern::createShrubbery, &Intern::createShrubbery,
&Intern::createShrubbery, &Intern::createRobotomy,
&Intern::createPardon &Intern::createPardon
}; };

View File

@@ -6,11 +6,12 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:14:18 by aortigos #+# #+# */ /* 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 #ifndef INTERN_HPP
# define INTERN_HPP # define INTERN_HPP
# include <iostream> # include <iostream>

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:14:52 by aortigos #+# #+# */ /* 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; Intern intern;
try { try {
AForm* form = intern.makeForm("shrubbery creation", "home"); AForm* form = intern.makeForm("presidential pardon", "home");
angel.executeForm(*form); angel.executeForm(*form);
angel.signForm(*form); angel.signForm(*form);