Skip to content

Commit

Permalink
fix not used Token compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Eggert committed Jul 2, 2018
1 parent 7e28b63 commit 5befe09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Release/src/json/json_parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class JSON_Parser

virtual bool CompleteComment(Token &token);
virtual bool CompleteStringLiteral(Token &token);
int convert_unicode_to_code_point(Token &token);
int convert_unicode_to_code_point();
bool handle_unescape_char(Token &token);

private:
Expand Down Expand Up @@ -712,7 +712,7 @@ void convert_append_unicode_code_unit(JSON_Parser<char>::Token &token, utf16char
}

template <typename CharType>
int JSON_Parser<CharType>::convert_unicode_to_code_point(Token &token)
int JSON_Parser<CharType>::convert_unicode_to_code_point()
{
// A four-hexdigit Unicode character.
// Transform into a 16 bit code point.
Expand Down Expand Up @@ -777,7 +777,7 @@ inline bool JSON_Parser<CharType>::handle_unescape_char(Token &token)
return true;
case 'u':
{
int decoded = convert_unicode_to_code_point(token);
int decoded = convert_unicode_to_code_point();
if (decoded == -1)
{
return false;
Expand All @@ -788,7 +788,7 @@ inline bool JSON_Parser<CharType>::handle_unescape_char(Token &token)
{
// skip escape character
NextCharacter(); NextCharacter();
int decoded2 = convert_unicode_to_code_point(token);
int decoded2 = convert_unicode_to_code_point();

utf16string compoundUTF16 = { static_cast<utf16char>(decoded),
static_cast<utf16char>(decoded2) };
Expand Down

0 comments on commit 5befe09

Please sign in to comment.