Skip to content

Commit

Permalink
make NULLNODE be const
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Mar 24, 2021
1 parent d106375 commit 87251d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtreetools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ NodeValueType = Pair{IndType, Array{Any,1}}
IntNodeValueType = Pair{IndType, Array{Int,1}}
LocQtreeType = QtreeNode{NodeValueType}
IntLocQtreeType = QtreeNode{IntNodeValueType}
NULLNODE = LocQtreeType()
INTNULLNODE = QtreeNode{IntNodeValueType}()
const NULLNODE = LocQtreeType()
const INTNULLNODE = QtreeNode{IntNodeValueType}()
nullnode(n::LocQtreeType) = NULLNODE
nullnode(n::IntLocQtreeType) = INTNULLNODE
LocQtree(ind::IndType, parent=NULLNODE) = LocQtreeType(ind=>[], parent, [NULLNODE, NULLNODE, NULLNODE, NULLNODE])
Expand Down

0 comments on commit 87251d8

Please # to comment.