| 311 | } |
| 312 | |
| 313 | void Endpoint::slotHandlerDestroyed(QObject *obj) |
| 314 | { |
| 315 | // copy, the virtual method below likely changes the maps. |
| 316 | const QList<ObjectInfo *> objs = m_handlerMap.values(obj); |
| 317 | m_handlerMap.remove(obj); |
| 318 | for (ObjectInfo *obj : objs) { |
| 319 | obj->receiver = nullptr; |
| 320 | obj->messageHandler = QMetaMethod(); |
| 321 | // copy the name, in case unregisterMessageHandlerInternal() is called inside |
| 322 | handlerDestroyed(obj->address, QString(obj->name)); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | void Endpoint::dispatchMessage(const Message &msg) |
| 327 | { |
nothing calls this directly
no test coverage detected