Ran AStyle, removed redundant tokAt(0)

This commit is contained in:
PKEuS 2012-08-22 16:51:44 +02:00
parent 0600b0be8f
commit 43e01a2b1a
2 changed files with 2 additions and 2 deletions

View File

@ -5950,7 +5950,7 @@ bool Tokenizer::simplifyKnownVariables()
const std::string structname("");
const Token * const valueToken = tok2->tokAt(4);
std::string value(valueToken->str());
if ((tok2->tokAt(0))->str() == "sprintf") {
if (tok2->str() == "sprintf") {
while ((n = value.find("%%",n+1)) != std::string::npos) {
value.replace(n,2,"%");
}