Skip to content

Commit

Permalink
Revert some unnecessary member initializer changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Oct 6, 2017
1 parent 5e480b5 commit 45e1e3d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2841,13 +2841,13 @@ class lexer

private:
/// input adapter
detail::input_adapter_t ia { nullptr };
detail::input_adapter_t ia = nullptr;

/// the current character
int current { std::char_traits<char>::eof() };
int current = std::char_traits<char>::eof();

/// the number of characters read
std::size_t chars_read { 0 };
std::size_t chars_read = 0;

/// raw input token string (for error messages)
std::vector<char> token_string { };
Expand All @@ -2856,15 +2856,15 @@ class lexer
std::string yytext { };

/// a description of occurred lexer errors
const char* error_message { "" };
const char* error_message = "";

// number values
number_integer_t value_integer { 0 };
number_unsigned_t value_unsigned { 0 };
number_float_t value_float { 0 };
number_integer_t value_integer = 0;
number_unsigned_t value_unsigned = 0;
number_float_t value_float = 0;

/// the decimal point
const char decimal_point_char { '.' };
const char decimal_point_char = '.';
};

/*!
Expand Down

0 comments on commit 45e1e3d

Please sign in to comment.