mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Bring back logic for BUILD_SHARED_LIBS.
Also remove C++11 code.
This commit is contained in:
@@ -559,9 +559,9 @@ double TokenFunc::asFloat(const Token& t) {
|
||||
const std::string &TokenFunc::asStringRef(const Token& t) {
|
||||
std::string &str = t.lexer->GetTempString();
|
||||
t.lexer->TokenString(t.startPos, str);
|
||||
if (isString(t) || isEnumeration(t) || isBinary(t)) {
|
||||
if ((isString(t) || isEnumeration(t) || isBinary(t)) && !str.empty()) {
|
||||
//remove start+end characters in-place
|
||||
str.pop_back();
|
||||
str.erase(str.end()-1);
|
||||
str.erase(str.begin());
|
||||
}
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user