diff --git a/services/common/platform/event/source/event.cpp b/services/common/platform/event/source/event.cpp index 15bd597b790a32fa1d15a8df4e29aaae39347d75..dd9a0b9caa1fbf754d56c2aaf85a744f82cd5315 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 7eb124ad57d71ae5f0a184c6546771265ca5b45d..4d8f7a5b7b4b9c650f42e8dff9df9aa88dd3522b 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); }