diff --git a/services/common/platform/event/source/event.cpp b/services/common/platform/event/source/event.cpp index 15bd597..dd9a0b9 100755 --- a/services/common/platform/event/source/event.cpp +++ b/services/common/platform/event/source/event.cpp @@ -83,7 +83,7 @@ DEFINE_IMPL_CLASS_CAST(EventCast, IEvent, Event); class EventDeleter { public: - void operator ()(IEvent *&p) const + void operator ()(IEvent *p) const { EventCast::Destroy(p); } diff --git a/services/common/platform/semaphore/source/semaphore.cpp b/services/common/platform/semaphore/source/semaphore.cpp index 7eb124a..4d8f7a5 100755 --- a/services/common/platform/semaphore/source/semaphore.cpp +++ b/services/common/platform/semaphore/source/semaphore.cpp @@ -68,7 +68,7 @@ DEFINE_IMPL_CLASS_CAST(SemaphoreCast, ISemaphore, Semaphore); class SemaphoreDeleter { public: - void operator ()(ISemaphore *&p) const + void operator ()(ISemaphore *p) const { SemaphoreCast::Destroy(p); }