X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoken.h;h=28cca97e882f83e76f4d5a6035e15d6465ac8b99;hb=HEAD;hp=b0d2655f5af5ffbb8f82f3e95e9994b390c47c25;hpb=f3279c1ff5f745905b0e4f282c10e2cac26227ce;p=libs%2Fdatafile.git diff --git a/source/token.h b/source/token.h index b0d2655..cbf5882 100644 --- a/source/token.h +++ b/source/token.h @@ -17,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) { } };