@@ -120,10 +120,10 @@ bool clsLEAMDNSHost_Legacy::close(void)
120
120
121
121
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
122
122
{
123
- if ((bResult = (*it). m_pHost ->close ()))
123
+ if ((bResult = it-> m_pHost ->close ()))
124
124
{
125
- delete (*it). m_pHost ;
126
- (*it). m_pHost = 0 ;
125
+ delete it-> m_pHost ;
126
+ it-> m_pHost = 0 ;
127
127
}
128
128
}
129
129
return ((bResult)
@@ -177,7 +177,7 @@ bool clsLEAMDNSHost_Legacy::setHostname(const char* p_pcHostname)
177
177
178
178
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
179
179
{
180
- bResult = (*it). m_pHost ->setHostName (p_pcHostname);
180
+ bResult = it-> m_pHost ->setHostName (p_pcHostname);
181
181
}
182
182
return bResult;
183
183
}
@@ -275,11 +275,11 @@ bool clsLEAMDNSHost_Legacy::removeService(const hMDNSService p_hService)
275
275
276
276
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
277
277
{
278
- clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService];
278
+ clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService];
279
279
if ((bResult = ((pService)
280
- && ((*it). m_pHost ->removeService (pService)))))
280
+ && (it-> m_pHost ->removeService (pService)))))
281
281
{
282
- (*it). m_HandleToPtr .erase (p_hService);
282
+ it-> m_HandleToPtr .erase (p_hService);
283
283
}
284
284
}
285
285
return bResult;
@@ -311,7 +311,7 @@ bool clsLEAMDNSHost_Legacy::setServiceName(const hMDNSService p_hService,
311
311
312
312
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
313
313
{
314
- clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService];
314
+ clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService];
315
315
bResult = ((pService)
316
316
&& (pService->setInstanceName (p_pcInstanceName)));
317
317
}
@@ -518,13 +518,13 @@ bool clsLEAMDNSHost_Legacy::removeServiceTxt(const hMDNSService p_hService,
518
518
519
519
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
520
520
{
521
- clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService];
522
- clsLEAMDNSHost::clsServiceTxt* pTxt = (clsLEAMDNSHost::clsServiceTxt*)(*it). m_HandleToPtr [p_hTxt];
521
+ clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService];
522
+ clsLEAMDNSHost::clsServiceTxt* pTxt = (clsLEAMDNSHost::clsServiceTxt*)it-> m_HandleToPtr [p_hTxt];
523
523
if ((bResult = ((pService)
524
524
&& (pTxt)
525
525
&& (pService->removeServiceTxt (pTxt)))))
526
526
{
527
- (*it). m_HandleToPtr .erase (p_hTxt);
527
+ it-> m_HandleToPtr .erase (p_hTxt);
528
528
}
529
529
}
530
530
return bResult;
@@ -595,7 +595,7 @@ bool clsLEAMDNSHost_Legacy::setDynamicServiceTxtCallback(const hMDNSService p_hS
595
595
596
596
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
597
597
{
598
- clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService];
598
+ clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService];
599
599
bResult = pService->setDynamicServiceTxtCallback ([p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /* p_rMDNSService*/ )->void
600
600
{
601
601
if (p_fnCallback) // void(const hMDNSService p_hService)
@@ -720,7 +720,7 @@ bool clsLEAMDNSHost_Legacy::removeQuery(void)
720
720
721
721
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
722
722
{
723
- bResult = (*it). m_pHost ->removeQuery ();
723
+ bResult = it-> m_pHost ->removeQuery ();
724
724
}
725
725
return bResult;
726
726
}
@@ -850,9 +850,9 @@ bool clsLEAMDNSHost_Legacy::removeServiceQuery(clsLEAMDNSHost_Legacy::hMDNSServi
850
850
851
851
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
852
852
{
853
- if ((bResult = (*it). m_pHost ->removeQuery ((clsLEAMDNSHost::clsQuery*)(*it). m_HandleToPtr [p_hServiceQuery])))
853
+ if ((bResult = it-> m_pHost ->removeQuery ((clsLEAMDNSHost::clsQuery*)it-> m_HandleToPtr [p_hServiceQuery])))
854
854
{
855
- (*it). m_HandleToPtr .erase (p_hServiceQuery);
855
+ it-> m_HandleToPtr .erase (p_hServiceQuery);
856
856
}
857
857
}
858
858
return bResult;
@@ -1101,7 +1101,7 @@ bool clsLEAMDNSHost_Legacy::setHostProbeResultCallback(clsLEAMDNSHost_Legacy::MD
1101
1101
1102
1102
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1103
1103
{
1104
- bResult = (*it). m_pHost ->setProbeResultCallback (clsLEAMDNSHost::stProbeResultCallback);
1104
+ bResult = it-> m_pHost ->setProbeResultCallback (clsLEAMDNSHost::stProbeResultCallback);
1105
1105
}
1106
1106
return bResult;
1107
1107
}
@@ -1127,7 +1127,7 @@ bool clsLEAMDNSHost_Legacy::setHostProbeResultCallback(clsLEAMDNSHost_Legacy::MD
1127
1127
1128
1128
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1129
1129
{
1130
- bResult = (*it). m_pHost ->setProbeResultCallback (clsLEAMDNSHost::stProbeResultCallback);
1130
+ bResult = it-> m_pHost ->setProbeResultCallback (clsLEAMDNSHost::stProbeResultCallback);
1131
1131
}
1132
1132
return bResult;
1133
1133
}
@@ -1144,7 +1144,7 @@ bool clsLEAMDNSHost_Legacy::setServiceProbeResultCallback(const clsLEAMDNSHost_L
1144
1144
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1145
1145
{
1146
1146
clsLEAMDNSHost::clsService* pService = 0 ;
1147
- bResult = (((pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService]))
1147
+ bResult = (((pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService]))
1148
1148
&& (pService->setProbeResultCallback (
1149
1149
1150
1150
[this , p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /* p_rMDNSService*/ ,
@@ -1173,7 +1173,7 @@ bool clsLEAMDNSHost_Legacy::setServiceProbeResultCallback(const clsLEAMDNSHost_L
1173
1173
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1174
1174
{
1175
1175
clsLEAMDNSHost::clsService* pService = 0 ;
1176
- bResult = (((pService = (clsLEAMDNSHost::clsService*)(*it). m_HandleToPtr [p_hService]))
1176
+ bResult = (((pService = (clsLEAMDNSHost::clsService*)it-> m_HandleToPtr [p_hService]))
1177
1177
&& (pService->setProbeResultCallback ([this , p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /* p_rMDNSService*/ ,
1178
1178
const char * p_pcInstanceName,
1179
1179
bool p_bProbeResult)->void
@@ -1204,7 +1204,7 @@ bool clsLEAMDNSHost_Legacy::notifyAPChange(void)
1204
1204
1205
1205
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1206
1206
{
1207
- bResult = (*it). m_pHost ->restart ();
1207
+ bResult = it-> m_pHost ->restart ();
1208
1208
}
1209
1209
return bResult;
1210
1210
}
@@ -1219,7 +1219,7 @@ bool clsLEAMDNSHost_Legacy::update(void)
1219
1219
1220
1220
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1221
1221
{
1222
- bResult = (*it). m_pHost ->update ();
1222
+ bResult = it-> m_pHost ->update ();
1223
1223
}
1224
1224
return bResult;
1225
1225
}
@@ -1234,7 +1234,7 @@ bool clsLEAMDNSHost_Legacy::announce(void)
1234
1234
1235
1235
for (stcHostInformation::list::iterator it = m_HostInformations.begin (); ((bResult) && (it != m_HostInformations.end ())); ++it)
1236
1236
{
1237
- bResult = (*it). m_pHost ->announce (true , true );
1237
+ bResult = it-> m_pHost ->announce (true , true );
1238
1238
}
1239
1239
return bResult;
1240
1240
}
0 commit comments