mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fixes IfcUtil::valid_binary_string so it returns false for an empty string
This commit is contained in:
committed by
Thomas Krijnen
parent
64e6561828
commit
2514e93a8d
@@ -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) {
|
||||
if (*it != '0' && *it != '1') return false;
|
||||
}
|
||||
return true;
|
||||
return s.empty() ? false : true;
|
||||
}
|
||||
|
||||
void IfcUtil::sanitate_material_name(std::string &str)
|
||||
|
||||
Reference in New Issue
Block a user