X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoken.h;h=28cca97e882f83e76f4d5a6035e15d6465ac8b99;hb=HEAD;hp=4e25f46f27d56cf06e0617d25fde6b23865e238f;hpb=98f563736e0837a429714b98656215503c607710;p=libs%2Fdatafile.git diff --git a/source/token.h b/source/token.h index 4e25f46..cbf5882 100644 --- a/source/token.h +++ b/source/token.h @@ -1,13 +1,10 @@ -/* -This file is part of libmspparser -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ -#ifndef MSP_PARSER_TOKEN_H_ -#define MSP_PARSER_TOKEN_H_ +#ifndef MSP_DATAFILE_TOKEN_H_ +#define MSP_DATAFILE_TOKEN_H_ + +#include namespace Msp { -namespace Parser { +namespace DataFile { struct Token { @@ -20,14 +17,14 @@ struct Token SPECIAL }; - Type type; + Type type = SPECIAL; std::string str; - Token(): type(SPECIAL) { } + Token() = default; Token(Type t, const std::string &s): type(t), str(s) { } }; -} // namespace Parser +} // namespace DataFile } // namespace Msp #endif