Use a proper constructor, discover two unused fields

This commit is contained in:
Eric Fischer
2017-11-10 13:06:47 -08:00
parent dca1ebbbfb
commit 069807caf4
2 changed files with 15 additions and 12 deletions
+8 -6
View File
@@ -10,13 +10,15 @@
#include "serial.hpp"
struct parse_json_args {
json_pull *jp = NULL;
int layer = 0;
std::string *layername = NULL;
std::map<std::string, int> const *attribute_types = NULL;
bool want_dist = false;
json_pull *jp;
int layer;
std::string *layername;
struct serialization_state *sst = NULL;
struct serialization_state *sst;
parse_json_args(json_pull *jp1, int layer1, std::string *layername1, struct serialization_state *sst1)
: jp(jp1), layer(layer1), layername(layername1), sst(sst1) {
}
};
struct json_pull *json_begin_map(char *map, long long len);