Skip to content

Commit 95d1b4f

Browse files
firewaveIOBYTE
andcommitted
removed some (currently) redundant std::to_string() calls
Co-authored-by: Robert Reif <reif@earthlink.net>
1 parent 3b40c99 commit 95d1b4f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/token.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ static void astStringXml(const Token *tok, nonneg int indent, std::ostream &out)
15711571

15721572
out << strindent << "<token str=\"" << tok->str() << '\"';
15731573
if (tok->varId())
1574-
out << " varId=\"" << std::to_string(tok->varId()) << '\"';
1574+
out << " varId=\"" << tok->varId() << '\"';
15751575
if (tok->variable())
15761576
out << " variable=\"" << tok->variable() << '\"';
15771577
if (tok->function())

lib/tokenize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5861,9 +5861,9 @@ void Tokenizer::dump(std::ostream &out) const
58615861
if (tok->link())
58625862
out << " link=\"" << tok->link() << '\"';
58635863
if (tok->varId() > 0)
5864-
out << " varId=\"" << std::to_string(tok->varId()) << '\"';
5864+
out << " varId=\"" << tok->varId() << '\"';
58655865
if (tok->exprId() > 0)
5866-
out << " exprId=\"" << std::to_string(tok->exprId()) << '\"';
5866+
out << " exprId=\"" << tok->exprId() << '\"';
58675867
if (tok->variable())
58685868
out << " variable=\"" << tok->variable() << '\"';
58695869
if (tok->function())

0 commit comments

Comments
 (0)