From 5720cbd63572b7bcecaacf18bd399b6dcf81289a Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 19 Mar 2025 20:25:47 +0100 Subject: [PATCH] fix: closing the file for shurberry --- cpp05/ex02/ShrubberyCreationForm.cpp | 3 ++- cpp05/ex03/ShrubberyCreationForm.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp05/ex02/ShrubberyCreationForm.cpp b/cpp05/ex02/ShrubberyCreationForm.cpp index 3119621..b2ba03c 100644 --- a/cpp05/ex02/ShrubberyCreationForm.cpp +++ b/cpp05/ex02/ShrubberyCreationForm.cpp @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/18 18:05:02 by rparodi #+# #+# */ -/* Updated: 2025/03/19 15:52:44 by rparodi ### ########.fr */ +/* Updated: 2025/03/19 20:25:27 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,5 +64,6 @@ void ShrubberyCreationForm::execute(Bureaucrat const &executor) const { "_- - | | _- _" << std::endl << \ " _ - | | -_" << std::endl << \ " // \\\\" << std::endl << std::endl; + file.close(); } } diff --git a/cpp05/ex03/ShrubberyCreationForm.cpp b/cpp05/ex03/ShrubberyCreationForm.cpp index db9b4d8..a668bcd 100644 --- a/cpp05/ex03/ShrubberyCreationForm.cpp +++ b/cpp05/ex03/ShrubberyCreationForm.cpp @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/18 18:05:02 by rparodi #+# #+# */ -/* Updated: 2025/03/19 15:52:44 by rparodi ### ########.fr */ +/* Updated: 2025/03/19 20:24:45 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,5 +64,6 @@ void ShrubberyCreationForm::execute(Bureaucrat const &executor) const { "_- - | | _- _" << std::endl << \ " _ - | | -_" << std::endl << \ " // \\\\" << std::endl << std::endl; + file.close(); } }