Fixed for OSX.

This commit is contained in:
brunoherbelin
2020-06-02 23:12:10 +02:00
parent 80da336771
commit a3f3ff9c92
10 changed files with 48 additions and 13 deletions

View File

@@ -4,7 +4,10 @@
SearchVisitor::SearchVisitor(Node *node) : Visitor(), node_(node), id_(0), found_(false)
{
id_ = node->id();
if (node != nullptr)
id_ = node->id();
else
id_ = -1;
}
SearchVisitor::SearchVisitor(int id) : Visitor(), node_(nullptr), id_(id), found_(false)