From 2c2be389fb4f79ae76696df1154659b9be291417 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 21 Jun 2016 11:11:16 +0200 Subject: [PATCH] Fix header parsing --- src/ifcparse/IfcSpfHeader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcSpfHeader.cpp b/src/ifcparse/IfcSpfHeader.cpp index d2445c5922..4a4e5316c8 100644 --- a/src/ifcparse/IfcSpfHeader.cpp +++ b/src/ifcparse/IfcSpfHeader.cpp @@ -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) {