slightly improve a var name

This commit is contained in:
Daniel Lupu 2022-04-30 18:19:02 +03:00 committed by r0qs
parent 66e314b7a0
commit d8173fb158
No known key found for this signature in database
GPG Key ID: 61503DBA6667276C

View File

@ -87,17 +87,17 @@ public:
}.printErrorInformation(_errors); }.printErrorInformation(_errors);
} }
shared_ptr<Object> getSubObject(shared_ptr<Object> const& _object, string const& _path) shared_ptr<Object> getSubObject(shared_ptr<Object> const& _object, string const& _qualifiedPath)
{ {
if (_path.empty() || _path == _object->name.str()) if (_qualifiedPath.empty() || _qualifiedPath == _object->name.str())
return _object; return _object;
yulAssert( yulAssert(
boost::algorithm::starts_with(_path, _object->name.str() + "."), boost::algorithm::starts_with(_qualifiedPath, _object->name.str() + "."),
"Assembly object not found." "Assembly object not found."
); );
const auto subObjectPath = _path.substr(_object->name.str().length() + 1); const auto subObjectPath = _qualifiedPath.substr(_object->name.str().length() + 1);
const auto subObjectName = subObjectPath.substr(0, subObjectPath.find_first_of('.')); const auto subObjectName = subObjectPath.substr(0, subObjectPath.find_first_of('.'));
auto subObjectIt = find_if( auto subObjectIt = find_if(