File tree Expand file tree Collapse file tree 7 files changed +27
-32
lines changed
jsonl/include/sourcemeta/core Expand file tree Collapse file tree 7 files changed +27
-32
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class SOURCEMETA_CORE_JSONL_EXPORT ConstJSONLIterator {
39
39
std::uint64_t line{1 };
40
40
std::uint64_t column{0 };
41
41
auto parse_next () -> JSON;
42
- std::basic_istream<JSON::Char, JSON::CharTraits> *data;
42
+ std::basic_istream<JSON::Char, JSON::CharTraits> *data{} ;
43
43
44
44
// Exporting symbols that depends on the standard C++ library is considered
45
45
// safe.
@@ -50,7 +50,7 @@ class SOURCEMETA_CORE_JSONL_EXPORT ConstJSONLIterator {
50
50
// Use PIMPL idiom to hide internal details, mainly
51
51
// templated members, which are tricky to DLL-export.
52
52
struct Internal ;
53
- std::unique_ptr<Internal> internal;
53
+ std::unique_ptr<Internal> internal{} ;
54
54
#if defined(_MSC_VER)
55
55
#pragma warning(default : 4251)
56
56
#endif
Original file line number Diff line number Diff line change @@ -258,10 +258,10 @@ auto traverse_origin_instance_locations(
258
258
}
259
259
260
260
struct CacheSubschema {
261
- const sourcemeta::core::PointerTemplate instance_location;
262
- const sourcemeta::core::PointerTemplate relative_instance_location;
263
- const bool orphan;
264
- const std::optional<sourcemeta::core::Pointer> parent;
261
+ const sourcemeta::core::PointerTemplate instance_location{} ;
262
+ const sourcemeta::core::PointerTemplate relative_instance_location{} ;
263
+ const bool orphan{} ;
264
+ const std::optional<sourcemeta::core::Pointer> parent{} ;
265
265
};
266
266
267
267
auto repopulate_instance_locations (
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class SOURCEMETA_CORE_JSONSCHEMA_EXPORT SchemaMapResolver {
66
66
#if defined(_MSC_VER)
67
67
#pragma warning(disable : 4251)
68
68
#endif
69
- std::map<std::string, JSON> schemas;
69
+ std::map<std::string, JSON> schemas{} ;
70
70
SchemaResolver default_resolver = nullptr ;
71
71
#if defined(_MSC_VER)
72
72
#pragma warning(default : 4251)
Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ class SOURCEMETA_CORE_JSONSCHEMA_EXPORT SchemaTransformRule {
122
122
#if defined(_MSC_VER)
123
123
#pragma warning(disable : 4251)
124
124
#endif
125
- const std::string name_;
126
- const std::string message_;
125
+ const std::string name_{} ;
126
+ const std::string message_{} ;
127
127
#if defined(_MSC_VER)
128
128
#pragma warning(default : 4251)
129
129
#endif
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class SOURCEMETA_CORE_JSONSCHEMA_EXPORT SchemaIterator {
77
77
#if defined(_MSC_VER)
78
78
#pragma warning(disable : 4251)
79
79
#endif
80
- internal subschemas;
80
+ internal subschemas{} ;
81
81
#if defined(_MSC_VER)
82
82
#pragma warning(default : 4251)
83
83
#endif
@@ -144,7 +144,7 @@ class SOURCEMETA_CORE_JSONSCHEMA_EXPORT SchemaIteratorFlat {
144
144
#if defined(_MSC_VER)
145
145
#pragma warning(disable : 4251)
146
146
#endif
147
- internal subschemas;
147
+ internal subschemas{} ;
148
148
#if defined(_MSC_VER)
149
149
#pragma warning(default : 4251)
150
150
#endif
@@ -201,7 +201,7 @@ class SOURCEMETA_CORE_JSONSCHEMA_EXPORT SchemaKeywordIterator {
201
201
#if defined(_MSC_VER)
202
202
#pragma warning(disable : 4251)
203
203
#endif
204
- internal entries;
204
+ internal entries{} ;
205
205
#if defined(_MSC_VER)
206
206
#pragma warning(default : 4251)
207
207
#endif
Original file line number Diff line number Diff line change @@ -462,20 +462,20 @@ class SOURCEMETA_CORE_URI_EXPORT URI {
462
462
#if defined(_MSC_VER)
463
463
#pragma warning(disable : 4251)
464
464
#endif
465
- std::string data;
466
-
467
- std::optional<std::string> path_;
468
- std::optional<std::string> userinfo_;
469
- std::optional<std::string> host_;
470
- std::optional<std::uint32_t > port_;
471
- std::optional<std::string> scheme_;
472
- std::optional<std::string> fragment_;
473
- std::optional<std::string> query_;
465
+ std::string data{} ;
466
+
467
+ std::optional<std::string> path_{} ;
468
+ std::optional<std::string> userinfo_{} ;
469
+ std::optional<std::string> host_{} ;
470
+ std::optional<std::uint32_t > port_{} ;
471
+ std::optional<std::string> scheme_{} ;
472
+ std::optional<std::string> fragment_{} ;
473
+ std::optional<std::string> query_{} ;
474
474
bool is_ipv6_ = false ;
475
475
476
476
// Use PIMPL idiom to hide `uriparser`
477
477
struct Internal ;
478
- std::unique_ptr<Internal> internal;
478
+ std::unique_ptr<Internal> internal{} ;
479
479
#if defined(_MSC_VER)
480
480
#pragma warning(default : 4251)
481
481
#endif
Original file line number Diff line number Diff line change @@ -139,16 +139,11 @@ URI::~URI() { uriFreeUriMembersA(&this->internal->uri); }
139
139
URI::URI (const URI &other) : URI{other.recompose ()} {}
140
140
141
141
URI::URI (URI &&other)
142
- : data{std::move (other.data )}, internal{std::move (other.internal )} {
143
- this ->parsed = other.parsed ;
144
- this ->path_ = std::move (other.path_ );
145
- this ->scheme_ = std::move (other.scheme_ );
146
- this ->userinfo_ = std::move (other.userinfo_ );
147
- this ->host_ = std::move (other.host_ );
148
- this ->port_ = other.port_ ;
149
- this ->fragment_ = std::move (other.fragment_ );
150
- this ->query_ = std::move (other.query_ );
151
-
142
+ : parsed{other.parsed }, data{std::move (other.data )},
143
+ path_{std::move (other.path_ )}, userinfo_{std::move (other.userinfo_ )},
144
+ host_{std::move (other.host_ )}, port_{other.port_ },
145
+ scheme_{std::move (other.scheme_ )}, fragment_{std::move (other.fragment_ )},
146
+ query_{std::move (other.query_ )}, internal{std::move (other.internal )} {
152
147
other.internal = nullptr ;
153
148
}
154
149
You can’t perform that action at this time.
0 commit comments