X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Ftokenizer.h;h=26c4b93c683ac7316fff92fda8aa8ab082215298;hp=46aa62fbea282c61ae016dd232f39b6fa73971f9;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/glsl/tokenizer.h b/source/glsl/tokenizer.h index 46aa62fb..26c4b93c 100644 --- a/source/glsl/tokenizer.h +++ b/source/glsl/tokenizer.h @@ -14,9 +14,9 @@ class Preprocessor; struct Location { std::string name; - unsigned line; + unsigned line = 0; - Location(): line(0) { } + Location() = default; Location(const std::string &n, unsigned l): name(n), line(l) { } }; @@ -29,9 +29,9 @@ private: std::string::const_iterator iter; std::string::const_iterator source_end; Location location; - bool progress_mark; - bool allow_preprocess; - bool suppress_line_advance; + bool progress_mark = false; + bool allow_preprocess = true; + bool suppress_line_advance = false; std::string last_token; std::deque next_tokens;