mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Fixed for OSX.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user