Util: Change Object map unused value to uint8_t

This commit is contained in:
Riyyi
2022-06-30 20:45:33 +02:00
parent ddf0a2858b
commit 6161d577c6
2 changed files with 4 additions and 10 deletions
+4 -5
View File
@@ -4,13 +4,12 @@
* SPDX-License-Identifier: MIT
*/
#include <cstdint> // uint32_t
#include <algorithm> // count
#include <cstddef> // size_t
#include <cstdio> // printf, sprintf
#include <cstdint> // uint8_t
#include <cstdio> // printf
#include <map>
#include <memory> // shared_ptr
#include <string> // stod
#include <string> // stod
#include "util/json/array.h"
#include "util/json/job.h"
@@ -309,7 +308,7 @@ Value Parser::getObject()
Value object = Value::Type::Object;
Token token;
std::string key;
std::map<std::string, uint32_t> unique;
std::map<std::string, uint8_t> unique;
for (;;) {
token = consume();
// Empty object
-5
View File
@@ -8,11 +8,6 @@
#define JSON_PARSER_H
#include <cstddef> // size_t
#include <map>
#include <memory> // shared_ptr
#include <string>
#include <type_traits>
#include <typeinfo>
#include <vector>
#include "util/json/lexer.h"