Changeset 1887:22fdc00894aa in lemon-0.x
- Timestamp:
- 01/09/06 13:41:06 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2462
- Location:
- gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/new_map_win.cc
r1884 r1887 160 160 //display it 161 161 //gdc.changeEdgeText(mapname); 162 163 //delete emptr;164 162 } 165 163 else //!edge.get_active() … … 241 239 //display it 242 240 //gdc.changeNodeText(mapname); 243 244 //delete emptr;245 241 } 246 242 if(!abortion) … … 375 371 std::string polishform=postOrder(root); 376 372 373 deleteTree(root); 374 377 375 return polishform; 378 376 } 379 377 return ""; 378 } 379 380 void NewMapWin::deleteTree(NewMapWin::tree_node * node) 381 { 382 if(node->left_child!=NULL) 383 { 384 deleteTree(node->left_child); 385 } 386 if(node->right_child!=NULL) 387 { 388 deleteTree(node->right_child); 389 } 390 delete node; 380 391 } 381 392 -
gui/new_map_win.h
r1849 r1887 29 29 ///Constructor of NewMapWin creates the widgets shown in NewMapWin. 30 30 NewMapWin(const std::string& title, NoteBookTab &, bool itisedge=true, bool edgenode=true); 31 31 32 32 ///Signal on button is connected to this function, 33 33 ///Therefore this function determines whether to … … 48 48 bool validVariable(std::string, bool); 49 49 50 void deleteTree(tree_node *); 51 50 52 std::map<char, std::string> ch2var; 51 53
Note: See TracChangeset
for help on using the changeset viewer.