Refactoring: Style applied

This commit is contained in:
Reijo Tomperi 2009-01-18 11:13:25 +00:00
parent 4ee4645858
commit 8155b9272f
1 changed files with 4 additions and 4 deletions

View File

@ -96,11 +96,11 @@ private:
ostr << tok->str(); ostr << tok->str();
// Append newlines // Append newlines
if ( tok->next() ) if (tok->next())
{ {
if ( tok->linenr() != tok->next()->linenr() ) if (tok->linenr() != tok->next()->linenr())
{ {
for (int i=tok->linenr();i < tok->next()->linenr();++i) for (int i = tok->linenr();i < tok->next()->linenr();++i)
ostr << "\n"; ostr << "\n";
} }
else else
@ -121,7 +121,7 @@ private:
" AAA(5)\n\n"; " AAA(5)\n\n";
const char expected[] = "# define AAA ( a ) a * a\n\n" const char expected[] = "# define AAA ( a ) a * a\n\n"
"AAA ( 5 )"; "AAA ( 5 )";
ASSERT_EQUALS( expected, tokenizeAndStringify(code) ); ASSERT_EQUALS(expected, tokenizeAndStringify(code));
} }