From 13e995b811e80dc48c0769274d3dca3a2221b843 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Thu, 17 Aug 2017 23:02:50 +0200 Subject: Modernize src/c* src/d* and src/e* files (#6263) * Modernize src/c* src/d* and src/e* files * default operator * redundant init * delete default constructors on CraftDefinition childs (never used) * fix some missing init values * const ref fix reported by clang-tidy * ranged-based for loops * simple conditions & returns * empty stl function instead of size * emplace_back stl function instead of push_back + construct temp obj * auto for some iterators * code style fixes * c++ stl headers instead of C stl headers (stdio.h -> cstdio) --- src/debug.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/debug.cpp') diff --git a/src/debug.cpp b/src/debug.cpp index a30d6a95f..bdd4146ca 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -21,8 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "porting.h" #include "debug.h" #include "exceptions.h" -#include -#include +#include +#include #include #include #include @@ -110,7 +110,7 @@ void DebugStack::print(FILE *file, bool everything) os.str().c_str()); for (int i = 0; i < stack_max_i; i++) { - if (i == stack_i && everything == false) + if (i == stack_i && !everything) break; if (i < stack_i) @@ -128,7 +128,7 @@ void DebugStack::print(std::ostream &os, bool everything) os<<"DEBUG STACK FOR THREAD "<stack_i--; -- cgit v1.2.3