Util: Change Object map unused value to uint8_t
This commit is contained in:
@@ -4,12 +4,11 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cstdint> // uint32_t
|
|
||||||
#include <algorithm> // count
|
#include <algorithm> // count
|
||||||
#include <cstddef> // size_t
|
#include <cstddef> // size_t
|
||||||
#include <cstdio> // printf, sprintf
|
#include <cstdint> // uint8_t
|
||||||
|
#include <cstdio> // printf
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory> // shared_ptr
|
|
||||||
#include <string> // stod
|
#include <string> // stod
|
||||||
|
|
||||||
#include "util/json/array.h"
|
#include "util/json/array.h"
|
||||||
@@ -309,7 +308,7 @@ Value Parser::getObject()
|
|||||||
Value object = Value::Type::Object;
|
Value object = Value::Type::Object;
|
||||||
Token token;
|
Token token;
|
||||||
std::string key;
|
std::string key;
|
||||||
std::map<std::string, uint32_t> unique;
|
std::map<std::string, uint8_t> unique;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
token = consume();
|
token = consume();
|
||||||
// Empty object
|
// Empty object
|
||||||
|
|||||||
@@ -8,11 +8,6 @@
|
|||||||
#define JSON_PARSER_H
|
#define JSON_PARSER_H
|
||||||
|
|
||||||
#include <cstddef> // size_t
|
#include <cstddef> // size_t
|
||||||
#include <map>
|
|
||||||
#include <memory> // shared_ptr
|
|
||||||
#include <string>
|
|
||||||
#include <type_traits>
|
|
||||||
#include <typeinfo>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "util/json/lexer.h"
|
#include "util/json/lexer.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user