Ran AStyle, removed redundant tokAt(0)
This commit is contained in:
parent
0600b0be8f
commit
43e01a2b1a
|
@ -5950,7 +5950,7 @@ bool Tokenizer::simplifyKnownVariables()
|
||||||
const std::string structname("");
|
const std::string structname("");
|
||||||
const Token * const valueToken = tok2->tokAt(4);
|
const Token * const valueToken = tok2->tokAt(4);
|
||||||
std::string value(valueToken->str());
|
std::string value(valueToken->str());
|
||||||
if ((tok2->tokAt(0))->str() == "sprintf") {
|
if (tok2->str() == "sprintf") {
|
||||||
while ((n = value.find("%%",n+1)) != std::string::npos) {
|
while ((n = value.find("%%",n+1)) != std::string::npos) {
|
||||||
value.replace(n,2,"%");
|
value.replace(n,2,"%");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue