From: Mikko Rasa Date: Mon, 25 Jul 2011 14:07:49 +0000 (+0300) Subject: Style update: remove alignment X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5c98c1f499413c41fd46ddf71a46b481338d7d6b;p=libs%2Fdatafile.git Style update: remove alignment --- diff --git a/source/parser.h b/source/parser.h index a89799b..40907dc 100644 --- a/source/parser.h +++ b/source/parser.h @@ -19,11 +19,11 @@ statements may be read. class Parser { private: - Input in; + Input in; std::string main_src; std::string src; - bool good; - ParserMode *mode; + bool good; + ParserMode *mode; public: Parser(IO::Base &i, const std::string &s); diff --git a/source/statement.h b/source/statement.h index b26f2c8..f9287a5 100644 --- a/source/statement.h +++ b/source/statement.h @@ -13,10 +13,10 @@ public: typedef std::vector Arguments; std::string keyword; - Arguments args; - bool valid; + Arguments args; + bool valid; std::string source; - unsigned line; + unsigned line; std::list sub; Statement(); diff --git a/source/textparser.cpp b/source/textparser.cpp index 9545cdc..56c9bb2 100644 --- a/source/textparser.cpp +++ b/source/textparser.cpp @@ -21,8 +21,8 @@ Statement TextParser::parse() Statement TextParser::parse_statement(const Token *t) { Statement result; - bool sub = false; - bool finish = false; + bool sub = false; + bool finish = false; while(in) { @@ -160,8 +160,8 @@ Token TextParser::parse_token() }; ParseState state = INIT; - string buf; - bool escape = false; + string buf; + bool escape = false; while(in || state==INIT) { diff --git a/source/textparser.h b/source/textparser.h index 2aefea9..eb45233 100644 --- a/source/textparser.h +++ b/source/textparser.h @@ -17,10 +17,10 @@ public: protected: Statement parse_statement(const Token *); Token parse_token(); - bool is_delimiter(int); - bool isodigit(int); + bool is_delimiter(int); + bool isodigit(int); std::string get_location(); - void parse_error(int, const char *); + void parse_error(int, const char *); }; } // namespace DataFile