Open chuacw opened 2 weeks ago
it should return nil, instead of returning @Node.Data
@chuacw : Can you please explain why you think that?
Self
(the object pointer to a virtual tree instance) is not a valid input for GetNodeData()
and the pointer type of the parameter does not match. So why should we care?
When Node is Pointer(Self) in GetNodeData, it should return nil, instead of returning @Node.Data, ie... the code for GetNodeData should be updated to: