mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-13 10:32:58 +01:00
Explicitly initialise optionals in Subschema class
This commit is contained in:
parent
cb778b6bb6
commit
3740dc5166
@ -63,7 +63,13 @@ public:
|
||||
Subschema(CustomAlloc allocFn, CustomFree freeFn)
|
||||
: m_allocFn(allocFn)
|
||||
, m_freeFn(freeFn)
|
||||
, m_alwaysInvalid(false) { }
|
||||
, m_alwaysInvalid(false)
|
||||
{
|
||||
// explicitly initialise optionals. See: https://github.com/tristanpenman/valijson/issues/124
|
||||
m_description = opt::nullopt;
|
||||
m_id = opt::nullopt;
|
||||
m_title = opt::nullopt;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Clean up and free all memory managed by the Subschema
|
||||
|
Loading…
Reference in New Issue
Block a user