From 7072504e6dfc898c9485b6124273d04adbf3005d Mon Sep 17 00:00:00 2001 From: wqking Date: Sat, 30 Apr 2022 07:52:53 +0800 Subject: [PATCH] Fixed compile warnings in MSVC --- include/eventpp/utilities/scopedremover.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/eventpp/utilities/scopedremover.h b/include/eventpp/utilities/scopedremover.h index 93979b5..7322514 100644 --- a/include/eventpp/utilities/scopedremover.h +++ b/include/eventpp/utilities/scopedremover.h @@ -108,11 +108,11 @@ public: itemList.clear(); } - void setDispatcher(DispatcherType & dispatcher) + void setDispatcher(DispatcherType & dispatcher_) { - if(this->dispatcher != &dispatcher) { + if(this->dispatcher != &dispatcher_) { reset(); - this->dispatcher = &dispatcher; + this->dispatcher = &dispatcher_; } } @@ -249,11 +249,11 @@ public: itemList.clear(); } - void setCallbackList(CallbackListType & callbackList) + void setCallbackList(CallbackListType & callbackList_) { - if(this->callbackList != &callbackList) { + if(this->callbackList != &callbackList_) { reset(); - this->callbackList = &callbackList; + this->callbackList = &callbackList_; } }