1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-27 00:17:02 +08:00

Fixed compile warnings in MSVC

This commit is contained in:
wqking 2022-04-30 07:52:53 +08:00
parent 4160f119f8
commit 7072504e6d

View File

@ -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_;
}
}