!234 Fix code error for llvm15 compile

Merge pull request !234 from enable_llvm15
This commit is contained in:
openharmony_ci
2023-04-04 07:05:07 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions
@@ -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);
}
@@ -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);
}