Fixed Cppcheck warning. Method TokenList::createAst can be const
This commit is contained in:
parent
ca632bd771
commit
e3dd51dd2b
|
@ -353,7 +353,7 @@ bool TokenList::createTokens(std::istream &code, const std::string& file0)
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
void TokenList::createAst()
|
void TokenList::createAst() const
|
||||||
{
|
{
|
||||||
// operators that must be ordered according to C-precedence
|
// operators that must be ordered according to C-precedence
|
||||||
const char * const operators[] = {
|
const char * const operators[] = {
|
||||||
|
|
|
@ -105,7 +105,7 @@ public:
|
||||||
*/
|
*/
|
||||||
std::string fileLine(const Token *tok) const;
|
std::string fileLine(const Token *tok) const;
|
||||||
|
|
||||||
void createAst();
|
void createAst() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Disable copy constructor, no implementation */
|
/** Disable copy constructor, no implementation */
|
||||||
|
|
Loading…
Reference in New Issue