fixup! Traverse object tree

This commit is contained in:
Kamil Śliwak 2023-08-25 14:49:40 +02:00
parent 42c92cf342
commit 3b99f598ca
2 changed files with 6 additions and 2 deletions

View File

@ -145,7 +145,11 @@ set<YulString> Object::qualifiedDataNames() const
return qualifiedNames;
}
void Object::traverseObjectTree(Object const* _object, YulString _qualifiedName, std::function<bool(Object const*)> _visitor)
void Object::traverseObjectTree(
Object const* _object,
YulString _qualifiedName,
std::function<bool(Object const*)> const& _visitor
)
{
yulAssert(!_qualifiedName.empty(), "");

View File

@ -122,7 +122,7 @@ public:
static void traverseObjectTree(
Object const* _object,
YulString _qualifiedName,
std::function<bool(Object const*)> _visitor
std::function<bool(Object const*)> const& _visitor
);
/// sub id for object if it is subobject of another object, max value if it is not subobject