Fix header parsing

This commit is contained in:
Thomas Krijnen
2016-06-21 11:11:16 +02:00
parent 62a0f21a57
commit 2c2be389fb
+1 -1
View File
@@ -47,7 +47,7 @@ void IfcSpfHeader::readParen() {
}
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));
}
if (trail == TRAILING_SEMICOLON) {