slightly improve a var name

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

View File

@ -87,17 +87,17 @@ public:
}.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;
yulAssert(
boost::algorithm::starts_with(_path, _object->name.str() + "."),
boost::algorithm::starts_with(_qualifiedPath, _object->name.str() + "."),
"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('.'));
auto subObjectIt = find_if(