File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ IfcParse::IfcSpfHeader::IfcSpfHeader(IfcParse::IfcFile* file)
7272 file_name_(nullptr ),
7373 file_schema_(nullptr )
7474{
75+ Header_section_schema::get_schema ();
76+
7577 if (file == nullptr ) {
7678 // overwritten later in IfcFile::setDefaultHeaderValues() when we know the schema identifier
7779 file_description_ = new Header_section_schema::file_description ({}, " " );
@@ -101,6 +103,8 @@ IfcParse::IfcSpfHeader::IfcSpfHeader(IfcParse::IfcFile* file)
101103
102104IfcParse::IfcSpfHeader::IfcSpfHeader (IfcParse::IfcSpfLexer* lexer)
103105{
106+ Header_section_schema::get_schema ();
107+
104108 storage_ = new impl::in_memory_file_storage;
105109 storage_->tokens = lexer;
106110 file_ = nullptr ;
@@ -284,5 +288,3 @@ Header_section_schema::file_schema* IfcParse::IfcSpfHeader::file_schema() {
284288
285289 return file_schema_;
286290}
287-
288- static auto & _ = Header_section_schema::get_schema();
You can’t perform that action at this time.
0 commit comments