From f63f2239768af69a07c6aa31ce625c7116f17056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 7 Dec 2008 06:44:36 +0000 Subject: [PATCH] Refactoring. Use "str" instead of "aaaa0" --- CheckClass.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CheckClass.cpp b/CheckClass.cpp index 11a51852f..39dc203bb 100644 --- a/CheckClass.cpp +++ b/CheckClass.cpp @@ -132,7 +132,7 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn indentlevel = 1; } - if ( tok->aaaa0() == '{' ) + if ( tok->str() == "{" ) { // If indentlevel==0 don't go to indentlevel 1. Skip the block. if ( indentlevel > 0 ) @@ -142,9 +142,9 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn { for ( ; tok; tok = tok->next ) { - if ( tok->aaaa0() == '{' ) + if ( tok->str() == "{" ) ++indentlevel; - else if ( tok->aaaa0() == '}' ) + else if ( tok->str() == "}" ) { --indentlevel; if ( indentlevel <= 0 ) @@ -158,7 +158,7 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn } } - if ( tok->aaaa0() == '}' ) + if ( tok->str() == "}" ) { indentlevel--; if ( indentlevel < 0 ) @@ -171,9 +171,9 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn if ( TOKEN::Match( tok, "%var1% (", _funcname ) ) { const TOKEN *tok2 = tok; - while ( tok2 && tok2->aaaa0() != '{' && tok2->aaaa0() != ';' ) + while ( tok2 && tok2->str() != "{" && tok2->str() != ";" ) tok2 = tok2->next; - if ( tok2 && tok2->aaaa0() == '{' ) + if ( tok2 && tok2->str() == "{" ) return tok; } }