cplusplus: do not use out-of-line constructor and destructor for Token

Change-Id: I10320b01a567789585a6af111de4de3f95883bd1
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-18 10:03:58 +02:00
committed by hjk
parent 7383220d73
commit 7eb84086d9
2 changed files with 1 additions and 11 deletions

View File

@@ -74,15 +74,6 @@ static const char *token_names[] = {
};
Token::Token() :
flags(0), offset(0), ptr(0)
{
}
Token::~Token()
{
}
void Token::reset()
{
flags = 0;

View File

@@ -263,8 +263,7 @@ enum Kind {
class CPLUSPLUS_EXPORT Token
{
public:
Token();
~Token();
Token() : flags(0), offset(0), ptr(0) {}
inline bool is(unsigned k) const { return f.kind == k; }
inline bool isNot(unsigned k) const { return f.kind != k; }