From bf4ac5521d0a033a4e4d564f48cf4829e26d16d9 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Fri, 28 Aug 2009 23:29:08 +0300 Subject: [PATCH] astyle fix --- src/checkmemoryleak.cpp | 4 ++-- src/tokenize.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index 178bd9641..72ef4baf1 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -475,8 +475,8 @@ static int countParameters(const Token *tok) const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list callstack, unsigned int varid, AllocType &alloctype, AllocType &dealloctype, bool &all, unsigned int sz) { if (std::bsearch(tok->strAt(0), call_func_white_list, - sizeof(call_func_white_list) / sizeof(call_func_white_list[0]), - sizeof(call_func_white_list[0]), call_func_white_list_compare)) + sizeof(call_func_white_list) / sizeof(call_func_white_list[0]), + sizeof(call_func_white_list[0]), call_func_white_list_compare)) return 0; if (getAllocationType(tok, varid) != No || getReallocationType(tok, varid) != No || getDeallocationType(tok, varid) != No) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 628825055..799fe8d42 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -2161,7 +2161,7 @@ bool Tokenizer::simplifyQuestionMark() bool Tokenizer::simplifyCasts() { createLinks(); - + bool ret = false; for (Token *tok = _tokens; tok; tok = tok->next()) { @@ -3103,7 +3103,7 @@ bool Tokenizer::simplifyCalculations() continue; // + and - are calculated after * - if (Token::Match(tok->next(),"[+-]")) + if (Token::Match(tok->next(), "[+-]")) { if (tok->previous()->str() == "*") continue;