mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:33:44 +00:00
Revert "Fixes IfcUtil::valid_binary_string so it returns false for an empty string"
This reverts commit 2514e93a8d.
This commit is contained in:
@@ -173,7 +173,7 @@ bool IfcUtil::valid_binary_string(const std::string& s) {
|
|||||||
for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) {
|
for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) {
|
||||||
if (*it != '0' && *it != '1') return false;
|
if (*it != '0' && *it != '1') return false;
|
||||||
}
|
}
|
||||||
return s.empty() ? false : true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IfcUtil::sanitate_material_name(std::string &str)
|
void IfcUtil::sanitate_material_name(std::string &str)
|
||||||
|
|||||||
Reference in New Issue
Block a user