[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Base Config.cpp, 1.9, 1.10
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-15 18:55:54
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19726 Modified Files: Config.cpp Log Message: current plan is deleted if a new one is given in setPlan(); Index: Config.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base/Config.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Config.cpp 25 Jan 2007 22:15:59 -0000 1.9 --- Config.cpp 15 Feb 2007 18:55:46 -0000 1.10 *************** *** 361,367 **** void Config::setPlan(CBM::XMLNode *_plan) { ! delete(plan); changes=1; - plan=_plan; root->add(_plan); } --- 361,371 ---- void Config::setPlan(CBM::XMLNode *_plan) { ! if (plan!=_plan) { ! if (plan) ! delete(plan); ! plan=_plan; ! } ! changes=1; root->add(_plan); } |