astyle style fixes

This commit is contained in:
Daniel Marjamäki 2009-03-11 19:14:45 +01:00
parent 77cf2213fe
commit 1514e65464
2 changed files with 9 additions and 9 deletions

View File

@ -508,12 +508,12 @@ void Tokenizer::tokenize(std::istream &code, const char FileName[])
// Create copy of template.. // Create copy of template..
const Token *tok3 = tok->tokAt(5); const Token *tok3 = tok->tokAt(5);
addtoken(((tok3->str()==type)?type2:tok3->str()).c_str(), tok3->linenr(), tok3->fileIndex()); addtoken(((tok3->str() == type) ? type2 : tok3->str()).c_str(), tok3->linenr(), tok3->fileIndex());
addtoken(funcname2.c_str(), tok3->linenr(), tok3->fileIndex()); addtoken(funcname2.c_str(), tok3->linenr(), tok3->fileIndex());
int indentlevel = 0; int indentlevel = 0;
for (tok3 = tok3->tokAt(2); tok3; tok3 = tok3->next()) for (tok3 = tok3->tokAt(2); tok3; tok3 = tok3->next())
{ {
addtoken(((tok3->str()==type)?type2:tok3->str()).c_str(), tok3->linenr(), tok3->fileIndex()); addtoken(((tok3->str() == type) ? type2 : tok3->str()).c_str(), tok3->linenr(), tok3->fileIndex());
if (tok3->str() == "{") if (tok3->str() == "{")
++indentlevel; ++indentlevel;