From a92013c92bfcd50b0e2561280c9eaa604843ade0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 17 Nov 2020 16:51:56 +0100 Subject: Fixing missleading indentation error from clang++ on Linux --- cpp01/ex03/ZombieHorde.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpp01/ex03/ZombieHorde.cpp') diff --git a/cpp01/ex03/ZombieHorde.cpp b/cpp01/ex03/ZombieHorde.cpp index c0eb974..bec92ca 100644 --- a/cpp01/ex03/ZombieHorde.cpp +++ b/cpp01/ex03/ZombieHorde.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 09:52:11 by charles #+# #+# */ -/* Updated: 2020/11/09 12:58:23 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 16:44:26 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -50,14 +50,20 @@ ZombieHorde::ZombieHorde(int n) ZombieHorde::~ZombieHorde() { if (m_horde == NULL) + { return; + } delete [] m_horde; } void ZombieHorde::announce() { if (m_horde == NULL) + { return; + } for (size_t i = 0; i < m_size; i++) + { m_horde[i].announce(); + } } -- cgit