From 49811b3ae37f8b579f38490e53983c5f6171bd52 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sun, 27 Aug 2006 20:30:39 +0000 Subject: [PATCH] removed usage of memcpy where not needed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18654 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/media/TimedEventQueuePrivate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/media/TimedEventQueuePrivate.cpp b/src/kits/media/TimedEventQueuePrivate.cpp index b4f0ee8d4d..af01d6aeaf 100644 --- a/src/kits/media/TimedEventQueuePrivate.cpp +++ b/src/kits/media/TimedEventQueuePrivate.cpp @@ -80,7 +80,7 @@ _event_queue_imp::AddEvent(const media_timed_event &event) ASSERT(fEventCount == 0); ASSERT(fLastEntry == NULL); fFirstEntry = fLastEntry = new event_queue_entry; - memcpy(&fFirstEntry->event,&event,sizeof(media_timed_event)); + fFirstEntry->event = event; fFirstEntry->prev = NULL; fFirstEntry->next = NULL; fEventCount++; @@ -90,7 +90,7 @@ _event_queue_imp::AddEvent(const media_timed_event &event) //insert at queue begin if (fFirstEntry->event.event_time >= event.event_time) { event_queue_entry *newentry = new event_queue_entry; - memcpy(&newentry->event,&event,sizeof(media_timed_event)); + newentry->event = event; newentry->prev = NULL; newentry->next = fFirstEntry; fFirstEntry->prev = newentry; @@ -102,7 +102,7 @@ _event_queue_imp::AddEvent(const media_timed_event &event) //insert at queue end if (fLastEntry->event.event_time <= event.event_time) { event_queue_entry *newentry = new event_queue_entry; - memcpy(&newentry->event,&event,sizeof(media_timed_event)); + newentry->event = event; newentry->prev = fLastEntry; newentry->next = NULL; fLastEntry->next = newentry; @@ -116,7 +116,7 @@ _event_queue_imp::AddEvent(const media_timed_event &event) if (entry->event.event_time <= event.event_time) { //insert after entry event_queue_entry *newentry = new event_queue_entry; - memcpy(&newentry->event,&event,sizeof(media_timed_event)); + newentry->event = event; newentry->prev = entry; newentry->next = entry->next; (entry->next)->prev = newentry;