X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoken.h;h=28cca97e882f83e76f4d5a6035e15d6465ac8b99;hb=HEAD;hp=ae4961947e6e3730359d5c8de4dbc761347469d5;hpb=8ff59df1f2e603557eceacbc81a8dc44de051dae;p=libs%2Fdatafile.git diff --git a/source/token.h b/source/token.h index ae49619..cbf5882 100644 --- a/source/token.h +++ b/source/token.h @@ -1,12 +1,8 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ #ifndef MSP_DATAFILE_TOKEN_H_ #define MSP_DATAFILE_TOKEN_H_ +#include + namespace Msp { namespace DataFile { @@ -21,10 +17,10 @@ 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) { } };