Browse Source

Util: Change Object map unused value to uint8_t

master
Riyyi 2 years ago
parent
commit
6161d577c6
  1. 9
      src/util/json/parser.cpp
  2. 5
      src/util/json/parser.h

9
src/util/json/parser.cpp

@ -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
src/util/json/parser.h

@ -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"

Loading…
Cancel
Save