mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 16:19:55 +00:00
Fix header parsing
This commit is contained in:
@@ -47,7 +47,7 @@ void IfcSpfHeader::readParen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IfcSpfHeader::readTerminal(const std::string& term, Trail trail) {
|
void IfcSpfHeader::readTerminal(const std::string& term, Trail trail) {
|
||||||
if (TokenFunc::asString(_lexer->Next()) != term) {
|
if (TokenFunc::asStringRef(_lexer->Next()) != term) {
|
||||||
throw IfcException(std::string("Expected " + term));
|
throw IfcException(std::string("Expected " + term));
|
||||||
}
|
}
|
||||||
if (trail == TRAILING_SEMICOLON) {
|
if (trail == TRAILING_SEMICOLON) {
|
||||||
|
|||||||
Reference in New Issue
Block a user