From 182c8f8357739f905bbd721006480502435b6b43 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 27 Nov 2022 12:04:31 -0800 Subject: Update brace style to match rest of my projects --- app/source/Cplt/Utils/RTTI.hpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'app/source/Cplt/Utils/RTTI.hpp') diff --git a/app/source/Cplt/Utils/RTTI.hpp b/app/source/Cplt/Utils/RTTI.hpp index 86b1e2c..bc0d289 100644 --- a/app/source/Cplt/Utils/RTTI.hpp +++ b/app/source/Cplt/Utils/RTTI.hpp @@ -3,15 +3,13 @@ #include template -bool is_a(TBase* t) -{ +bool is_a(TBase* t) { assert(t != nullptr); return T::IsInstance(t); } template -bool is_a_nullable(TBase* t) -{ +bool is_a_nullable(TBase* t) { if (t) { return is_a(t); } else { @@ -20,8 +18,7 @@ bool is_a_nullable(TBase* t) } template -T* dyn_cast(TBase* t) -{ +T* dyn_cast(TBase* t) { assert(t != nullptr); if (T::IsInstance(t)) { return static_cast(t); @@ -31,8 +28,7 @@ T* dyn_cast(TBase* t) } template -const T* dyn_cast(const TBase* t) -{ +const T* dyn_cast(const TBase* t) { assert(t != nullptr); if (T::IsInstance(t)) { return static_cast(t); @@ -42,8 +38,7 @@ const T* dyn_cast(const TBase* t) } template -T* dyn_cast_nullable(TBase* t) -{ +T* dyn_cast_nullable(TBase* t) { if (!t) return nullptr; return dyn_cast(t); } -- cgit v1.2.3-70-g09d2