aboutsummaryrefslogtreecommitdiffstats
path: root/Token.h
diff options
context:
space:
mode:
Diffstat (limited to 'Token.h')
-rw-r--r--Token.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Token.h b/Token.h
index 726c36eb..2db6e05d 100644
--- a/Token.h
+++ b/Token.h
@@ -223,7 +223,7 @@ public:
// Returns a string corresponding to the C++ token name
// (e.g. "LT" for the token LT).
- static const char* getName(Value tok)
+ static char const* getName(Value tok)
{
BOOST_ASSERT(tok < NUM_TOKENS); // tok is unsigned
return m_name[tok];
@@ -309,7 +309,7 @@ public:
// Returns a string corresponding to the JS token string
// (.e., "<" for the token LT) or NULL if the token doesn't
// have a (unique) string (e.g. an IDENTIFIER).
- static const char* toString(Value tok)
+ static char const* toString(Value tok)
{
BOOST_ASSERT(tok < NUM_TOKENS); // tok is unsigned.
return m_string[tok];
@@ -324,10 +324,10 @@ public:
}
private:
- static const char* const m_name[NUM_TOKENS];
- static const char* const m_string[NUM_TOKENS];
- static const int8_t m_precedence[NUM_TOKENS];
- static const char m_tokenType[NUM_TOKENS];
+ static char const* const m_name[NUM_TOKENS];
+ static char const* const m_string[NUM_TOKENS];
+ static int8_t const m_precedence[NUM_TOKENS];
+ static char const m_tokenType[NUM_TOKENS];
};
}