mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 08:23:26 +00:00
Added constructor to initialize all members.
This commit is contained in:
parent
c37806cbcd
commit
5b5d149057
@ -31,6 +31,14 @@ enum TOKEN_TYPE { TOKEN_OPERATOR, TOKEN_STRING_LITERAL,
|
||||
TOKEN_COMMENT, TOKEN_POINTER };
|
||||
|
||||
struct token {
|
||||
|
||||
token() :
|
||||
type(TOKEN_COMMENT),
|
||||
begin(),
|
||||
end()
|
||||
{
|
||||
}
|
||||
|
||||
TOKEN_TYPE type;
|
||||
iterator begin, end;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user