Save memory in wxDataViewTreeNode.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:22 +0000 (13:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:22 +0000 (13:24 +0000)
commitd0cfefc4e08e5485f5fe7a61cc9e77be22066a58
tree1dfe1ef6b657a1698800d992de4a2d83b48d40c7
parent422aa8ecfeb6e2cbd1a800cd8958903733183d67
Save memory in wxDataViewTreeNode.

Put data that are meaningful only for non-leaf nodes into a separate
struct that is only allocated for branch nodes. This makes branch
nodes larger by sizeof(void*), but leaf nodes save >50% of memory.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datavgen.cpp