Initialize all members.
This commit is contained in:
parent
2359d1b941
commit
f8978538f0
1 changed files with 8 additions and 2 deletions
|
@ -115,8 +115,14 @@ schema_validator::schema_validator()
|
|||
schema_validator::~schema_validator(){}
|
||||
|
||||
schema_validator::schema_validator(const std::string & config_file_name)
|
||||
:create_exceptions_(false),stack_(),counter_(),cache_(){
|
||||
config_read_ = read_config_file(config_file_name);
|
||||
: config_read_(read_config_file(config_file_name))
|
||||
, create_exceptions_(false)
|
||||
, root_()
|
||||
, stack_()
|
||||
, counter_()
|
||||
, cache_()
|
||||
, types_()
|
||||
{
|
||||
if (! config_read_) {
|
||||
ERR_VL << "Schema file "<< config_file_name << " was not read.\n";
|
||||
throw abstract_validator::error("Schema file "+ config_file_name
|
||||
|
|
Loading…
Add table
Reference in a new issue