diff --git a/src_main/core/piobject.h b/src_main/core/piobject.h index ae8b4025..6f7ee3ac 100755 --- a/src_main/core/piobject.h +++ b/src_main/core/piobject.h @@ -623,7 +623,7 @@ public: // / Raise events static void raiseEvent(PIObject * sender, const uint eventID) { for (int j = 0; j < sender->connections.size_s(); ++j) { - __Connection & i(sender->connections[j]); + __Connection i(sender->connections[j]); if (i.eventID != eventID) continue; #ifdef PIP_CXX11_SUPPORT if (i.functor) { @@ -649,7 +649,7 @@ public: template static void raiseEvent(PIObject * sender, const uint eventID, const T0 & v0 = T0()) { for (int j = 0; j < sender->connections.size_s(); ++j) { - __Connection & i(sender->connections[j]); + __Connection i(sender->connections[j]); if (i.eventID != eventID) continue; #ifdef PIP_CXX11_SUPPORT if (i.functor) { @@ -677,7 +677,7 @@ public: template static void raiseEvent(PIObject * sender, const uint eventID, const T0 & v0 = T0(), const T1 & v1 = T1()) { for (int j = 0; j < sender->connections.size_s(); ++j) { - __Connection & i(sender->connections[j]); + __Connection i(sender->connections[j]); if (i.eventID != eventID) continue; #ifdef PIP_CXX11_SUPPORT if (i.functor) { @@ -709,7 +709,7 @@ public: template static void raiseEvent(PIObject * sender, const uint eventID, const T0 & v0 = T0(), const T1 & v1 = T1(), const T2 & v2 = T2()) { for (int j = 0; j < sender->connections.size_s(); ++j) { - __Connection & i(sender->connections[j]); + __Connection i(sender->connections[j]); if (i.eventID != eventID) continue; #ifdef PIP_CXX11_SUPPORT if (i.functor) { @@ -743,7 +743,7 @@ public: template static void raiseEvent(PIObject * sender, const uint eventID, const T0 & v0 = T0(), const T1 & v1 = T1(), const T2 & v2 = T2(), const T3 & v3 = T3()) { for (int j = 0; j < sender->connections.size_s(); ++j) { - __Connection & i(sender->connections[j]); + __Connection i(sender->connections[j]); if (i.eventID != eventID) continue; #ifdef PIP_CXX11_SUPPORT if (i.functor) {