summaryrefslogtreecommitdiff
path: root/conflictcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'conflictcheck.c')
-rw-r--r--conflictcheck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/conflictcheck.c b/conflictcheck.c
index fd13fa7..ac09937 100644
--- a/conflictcheck.c
+++ b/conflictcheck.c
@@ -241,8 +241,7 @@ cList<cConflictCheckTimerObj>* cConflictCheck::CreateCurrentTimerList()
int deviceNr = gl_recStatusMonitor->TimerRecDevice(ti)-1;
// create a copy of this timer
- cTimer* clone = new cTimer;
- *clone = *ti;
+ cTimer* clone = new cTimer(*ti);
clone->SetEvent(ti->Event());
cConflictCheckTimerObj* timerObj = new cConflictCheckTimerObj(clone, ti->StartTime(), ti->StopTime(), deviceNr, ti->Index());