From d96ab027c9fb5290693041d741a2c5ba76226f7d Mon Sep 17 00:00:00 2001 From: Daniel Lupu Date: Sat, 30 Apr 2022 18:19:02 +0300 Subject: [PATCH] slightly improve a var name --- test/tools/yulopti.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tools/yulopti.cpp b/test/tools/yulopti.cpp index bf89e6250..53504e22f 100644 --- a/test/tools/yulopti.cpp +++ b/test/tools/yulopti.cpp @@ -87,17 +87,17 @@ public: }.printErrorInformation(_errors); } - shared_ptr getSubObject(shared_ptr const& _object, string const& _path) + shared_ptr getSubObject(shared_ptr 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(