make negative_exp and plus_or_minus const
This commit is contained in:
parent
babb65df46
commit
308082a9a8
@ -8857,13 +8857,12 @@ basic_json_parser_63:
|
||||
if (*str == 'e' or *str == 'E')
|
||||
{
|
||||
cp = *++str;
|
||||
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||
|
||||
bool plus_or_minus = false;
|
||||
if (cp == '-' or cp == '+')
|
||||
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||
const bool plus_or_minus = (cp == '-' or cp == '+');
|
||||
if (plus_or_minus)
|
||||
{
|
||||
cp = *++str;
|
||||
plus_or_minus = true;
|
||||
}
|
||||
|
||||
int count = 0; // exponent calculation
|
||||
|
||||
@ -8154,13 +8154,11 @@ class basic_json
|
||||
if (*str == 'e' or *str == 'E')
|
||||
{
|
||||
cp = *++str;
|
||||
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||
|
||||
bool plus_or_minus = false;
|
||||
if (cp == '-' or cp == '+')
|
||||
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||
const bool plus_or_minus = (cp == '-' or cp == '+');
|
||||
if (plus_or_minus)
|
||||
{
|
||||
cp = *++str;
|
||||
plus_or_minus = true;
|
||||
}
|
||||
|
||||
int count = 0; // exponent calculation
|
||||
|
||||
Loading…
Reference in New Issue
Block a user