Skip to content

Commit c781cc2

Browse files
committed
[ci] initialize fields to avoid ci errors
1 parent df243eb commit c781cc2

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

include/nlohmann/detail/input/binary_reader.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ class binary_reader
9191
/// SOA field definition for BJData Structure-of-Arrays (Draft 4)
9292
struct soa_field_t
9393
{
94-
string_t name;
94+
string_t name{};
9595
char_int_type type_marker = 0;
9696
std::size_t fixed_length = 0; ///< for 'S' and 'H' types
9797

9898
// Variable-length string support
9999
soa_string_encoding_t str_encoding = soa_string_encoding_t::none;
100-
std::vector<string_t> str_dict; ///< dictionary for dict encoding
100+
std::vector<string_t> str_dict{}; ///< dictionary for dict encoding
101101
std::size_t str_index_size = 0; ///< byte size of index (1, 2, or 4)
102102
};
103103

@@ -2984,11 +2984,11 @@ class binary_reader
29842984

29852985
struct field_data_t
29862986
{
2987-
std::vector<string_t> strings;
2988-
std::vector<bool> bools;
2989-
std::vector<std::int64_t> integers;
2990-
std::vector<std::uint64_t> unsigneds;
2991-
std::vector<double> floats;
2987+
std::vector<string_t> strings{};
2988+
std::vector<bool> bools{};
2989+
std::vector<std::int64_t> integers{};
2990+
std::vector<std::uint64_t> unsigneds{};
2991+
std::vector<double> floats{};
29922992
};
29932993

29942994
std::vector<field_data_t> field_data(nf);

single_include/nlohmann/json.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9929,13 +9929,13 @@ class binary_reader
99299929
/// SOA field definition for BJData Structure-of-Arrays (Draft 4)
99309930
struct soa_field_t
99319931
{
9932-
string_t name;
9932+
string_t name{};
99339933
char_int_type type_marker = 0;
99349934
std::size_t fixed_length = 0; ///< for 'S' and 'H' types
99359935

99369936
// Variable-length string support
99379937
soa_string_encoding_t str_encoding = soa_string_encoding_t::none;
9938-
std::vector<string_t> str_dict; ///< dictionary for dict encoding
9938+
std::vector<string_t> str_dict{}; ///< dictionary for dict encoding
99399939
std::size_t str_index_size = 0; ///< byte size of index (1, 2, or 4)
99409940
};
99419941

@@ -12822,11 +12822,11 @@ class binary_reader
1282212822

1282312823
struct field_data_t
1282412824
{
12825-
std::vector<string_t> strings;
12826-
std::vector<bool> bools;
12827-
std::vector<std::int64_t> integers;
12828-
std::vector<std::uint64_t> unsigneds;
12829-
std::vector<double> floats;
12825+
std::vector<string_t> strings{};
12826+
std::vector<bool> bools{};
12827+
std::vector<std::int64_t> integers{};
12828+
std::vector<std::uint64_t> unsigneds{};
12829+
std::vector<double> floats{};
1283012830
};
1283112831

1283212832
std::vector<field_data_t> field_data(nf);

0 commit comments

Comments
 (0)