summaryrefslogtreecommitdiff
path: root/tests/glibmm_nodetree
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-08-26 13:38:29 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-08-26 13:38:29 +0000
commit37288be95e498f11b6e1ed447b7365dbc5c478a1 (patch)
tree8b71ffe6e6a7086d4eb31a2436847822c0ab0ad5 /tests/glibmm_nodetree
parent6f1c4c2a86e412c462aedb0dfb6567d634bffce6 (diff)
downloadglibmm-37288be95e498f11b6e1ed447b7365dbc5c478a1.tar.gz
Actually use the copy constructor (or operator=), instead of just copying
2008-08-26 Murray Cumming <murrayc@murrayc.com> * tests/glibmm_nodetree/main.cc: Actually use the copy constructor (or operator=), instead of just copying the pointer. svn path=/trunk/; revision=720
Diffstat (limited to 'tests/glibmm_nodetree')
-rw-r--r--tests/glibmm_nodetree/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glibmm_nodetree/main.cc b/tests/glibmm_nodetree/main.cc
index a35bbb06..e1ca358f 100644
--- a/tests/glibmm_nodetree/main.cc
+++ b/tests/glibmm_nodetree/main.cc
@@ -119,7 +119,7 @@ int main()
tstring.clear();
- node = root; //A deep copy.
+ node = new type_nodetree_string(*root); //A deep copy.
g_assert(root->node_count(type_nodetree_string::TRAVERSE_ALL) == node->node_count(type_nodetree_string::TRAVERSE_ALL));
g_assert(root->get_max_height() == node->get_max_height());
root->traverse(sigc::bind(sigc::ptr_fun(node_build_string), sigc::ref(tstring)), Glib::TRAVERSE_IN_ORDER, type_nodetree_string::TRAVERSE_ALL, -1);