Update of /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28765
Modified Files:
PlanDefineBatch.cpp
Log Message:
PlanHolder used.
Fixed : batch removal.
Index: PlanDefineBatch.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan/PlanDefineBatch.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PlanDefineBatch.cpp 29 Aug 2007 20:34:06 -0000 1.9
--- PlanDefineBatch.cpp 12 Sep 2007 17:49:23 -0000 1.10
***************
*** 1,6 ****
#include <Plan/PlanDefineBatch.h>
! #include <Plan/Plan.h>
#include <System/System.h>
#include <main.h>
--- 1,8 ----
#include <Plan/PlanDefineBatch.h>
! #include <Plan/PlanHolder.h>
!
#include <System/System.h>
+
#include <main.h>
***************
*** 60,65 ****
n+="Batch ";
n+=c;
! // CBM::PlanBatch *P = new CBM::PlanBatch(n); !!!
! // App->planBatchRegister(P);
}
--- 62,68 ----
n+="Batch ";
n+=c;
!
! CBM::PlanBatch *P = new CBM::PlanBatch(PlanHolderGet(), n);
! App->planBatchRegister(P);
}
***************
*** 366,370 ****
delete(invisibleRootItem()->takeChild(invisibleRootItem()->indexOfChild(I)));
plan->removeBatch(_batch);
- delete(_batch);
}
--- 369,372 ----
|