aboutsummaryrefslogtreecommitdiffstats
path: root/Token.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-20 19:02:06 +0800
committerChristian <c@ethdev.com>2014-10-20 19:02:06 +0800
commitf0c334670dfef7c1b1d1ae610cf19ae9ad2822ca (patch)
tree7979e36c4b962bb3da82f86df52518b321bca947 /Token.h
parent646f106a34f189b225745a079fdc8560b9230e68 (diff)
downloaddexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.gz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.bz2
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.lz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.xz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.zst
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.zip
Coding style cleanup: const and vecptr.
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];
};
}