From: Mikko Rasa Date: Sun, 17 Jan 2021 10:45:49 +0000 (+0200) Subject: Turn Statement into a struct X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=82e19fd15e24f913fba0cf8a4fb0352f282c3389;p=libs%2Fdatafile.git Turn Statement into a struct --- diff --git a/source/parser.h b/source/parser.h index d187960..c7c10f1 100644 --- a/source/parser.h +++ b/source/parser.h @@ -11,7 +11,7 @@ namespace DataFile { class Loader; class LoaderAction; class ParserMode; -class Statement; +struct Statement; struct StatementKey; /** diff --git a/source/statement.h b/source/statement.h index 9aad48d..3aa6004 100644 --- a/source/statement.h +++ b/source/statement.h @@ -9,9 +9,8 @@ namespace DataFile { struct Token; -class Statement +struct Statement { -public: typedef std::vector Arguments; std::string keyword; diff --git a/source/writer.h b/source/writer.h index c209947..241ea9a 100644 --- a/source/writer.h +++ b/source/writer.h @@ -9,7 +9,7 @@ namespace Msp { namespace DataFile { -class Statement; +struct Statement; class WriterMode; /** diff --git a/source/writermode.h b/source/writermode.h index cc37710..614de98 100644 --- a/source/writermode.h +++ b/source/writermode.h @@ -7,7 +7,7 @@ namespace Msp { namespace DataFile { class Output; -class Statement; +struct Statement; class WriterMode: private NonCopyable {