From 0ee0fa42e6639b6fa474b7cf6afc6b1a78142185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 14 May 2020 16:41:43 +0200 Subject: Style: Enforce braces around if blocks and loops Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html --- main/performance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/performance.cpp') diff --git a/main/performance.cpp b/main/performance.cpp index 0894d68d3c..7e6b9fca64 100644 --- a/main/performance.cpp +++ b/main/performance.cpp @@ -78,8 +78,9 @@ void Performance::_bind_methods() { float Performance::_get_node_count() const { MainLoop *ml = OS::get_singleton()->get_main_loop(); SceneTree *sml = Object::cast_to(ml); - if (!sml) + if (!sml) { return 0; + } return sml->get_node_count(); } -- cgit v1.2.3