- wxNode *node = wxDDEServerObjects.GetFirst();
- wxDDEConnection *found = NULL;
- while (node && !found)
- {
- wxDDEServer *object = (wxDDEServer *)node->GetData();
- found = object->FindConnection((WXHCONV) hConv);
- node = node->GetNext();
- }
- if (found)
- return found;
-
- node = wxDDEClientObjects.GetFirst();
- while (node && !found)
- {
- wxDDEClient *object = (wxDDEClient *)node->GetData();
- found = object->FindConnection((WXHCONV) hConv);
- node = node->GetNext();
- }
- return found;
+ wxDDEServerList::compatibility_iterator serverNode = wxDDEServerObjects.GetFirst();
+ wxDDEConnection *found = NULL;
+ while (serverNode && !found)
+ {
+ wxDDEServer *object = serverNode->GetData();
+ found = object->FindConnection((WXHCONV) hConv);
+ serverNode = serverNode->GetNext();
+ }
+
+ if (found)
+ {
+ return found;
+ }
+
+ wxDDEClientList::compatibility_iterator clientNode = wxDDEClientObjects.GetFirst();
+ while (clientNode && !found)
+ {
+ wxDDEClient *object = clientNode->GetData();
+ found = object->FindConnection((WXHCONV) hConv);
+ clientNode = clientNode->GetNext();
+ }
+ return found;