From 15b3b0e9f8823752f80c7e597a70749813e61c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 15:26:48 -0500 Subject: Always use braces --- src/server/events/Delta.cpp | 3 ++- src/server/events/DisconnectAll.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server/events') diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index e5ff8325..e120e610 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -102,8 +102,9 @@ Delta::Delta(Engine& engine, Delta::~Delta() { - for (auto& s : _set_events) + for (auto& s : _set_events) { delete s; + } delete _create_event; } diff --git a/src/server/events/DisconnectAll.cpp b/src/server/events/DisconnectAll.cpp index 6d018c81..11311d12 100644 --- a/src/server/events/DisconnectAll.cpp +++ b/src/server/events/DisconnectAll.cpp @@ -66,8 +66,9 @@ DisconnectAll::DisconnectAll(Engine& engine, DisconnectAll::~DisconnectAll() { - for (auto& i : _impls) + for (auto& i : _impls) { delete i; + } } bool -- cgit v1.2.1