Commit 7eb84086 authored by hjk's avatar hjk Committed by hjk
Browse files

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



Change-Id: I10320b01a567789585a6af111de4de3f95883bd1
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 7383220d
......@@ -74,15 +74,6 @@ static const char *token_names[] = {
};
Token::Token() :
flags(0), offset(0), ptr(0)
{
}
Token::~Token()
{
}
void Token::reset()
{
flags = 0;
......
......@@ -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; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment