Skip to content

Commit d4bf122

Browse files
committed
(*it). => it->
1 parent 0dab814 commit d4bf122

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

libraries/ESP8266mDNS/src/LEAmDNS2_Legacy.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ bool clsLEAMDNSHost_Legacy::close(void)
120120

121121
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
122122
{
123-
if ((bResult = (*it).m_pHost->close()))
123+
if ((bResult = it->m_pHost->close()))
124124
{
125-
delete (*it).m_pHost;
126-
(*it).m_pHost = 0;
125+
delete it->m_pHost;
126+
it->m_pHost = 0;
127127
}
128128
}
129129
return ((bResult)
@@ -177,7 +177,7 @@ bool clsLEAMDNSHost_Legacy::setHostname(const char* p_pcHostname)
177177

178178
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
179179
{
180-
bResult = (*it).m_pHost->setHostName(p_pcHostname);
180+
bResult = it->m_pHost->setHostName(p_pcHostname);
181181
}
182182
return bResult;
183183
}
@@ -275,11 +275,11 @@ bool clsLEAMDNSHost_Legacy::removeService(const hMDNSService p_hService)
275275

276276
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
277277
{
278-
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it).m_HandleToPtr[p_hService];
278+
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it->m_HandleToPtr[p_hService];
279279
if ((bResult = ((pService)
280-
&& ((*it).m_pHost->removeService(pService)))))
280+
&& (it->m_pHost->removeService(pService)))))
281281
{
282-
(*it).m_HandleToPtr.erase(p_hService);
282+
it->m_HandleToPtr.erase(p_hService);
283283
}
284284
}
285285
return bResult;
@@ -311,7 +311,7 @@ bool clsLEAMDNSHost_Legacy::setServiceName(const hMDNSService p_hService,
311311

312312
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
313313
{
314-
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it).m_HandleToPtr[p_hService];
314+
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it->m_HandleToPtr[p_hService];
315315
bResult = ((pService)
316316
&& (pService->setInstanceName(p_pcInstanceName)));
317317
}
@@ -518,13 +518,13 @@ bool clsLEAMDNSHost_Legacy::removeServiceTxt(const hMDNSService p_hService,
518518

519519
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
520520
{
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];
523523
if ((bResult = ((pService)
524524
&& (pTxt)
525525
&& (pService->removeServiceTxt(pTxt)))))
526526
{
527-
(*it).m_HandleToPtr.erase(p_hTxt);
527+
it->m_HandleToPtr.erase(p_hTxt);
528528
}
529529
}
530530
return bResult;
@@ -595,7 +595,7 @@ bool clsLEAMDNSHost_Legacy::setDynamicServiceTxtCallback(const hMDNSService p_hS
595595

596596
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
597597
{
598-
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)(*it).m_HandleToPtr[p_hService];
598+
clsLEAMDNSHost::clsService* pService = (clsLEAMDNSHost::clsService*)it->m_HandleToPtr[p_hService];
599599
bResult = pService->setDynamicServiceTxtCallback([p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /*p_rMDNSService*/)->void
600600
{
601601
if (p_fnCallback) // void(const hMDNSService p_hService)
@@ -720,7 +720,7 @@ bool clsLEAMDNSHost_Legacy::removeQuery(void)
720720

721721
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
722722
{
723-
bResult = (*it).m_pHost->removeQuery();
723+
bResult = it->m_pHost->removeQuery();
724724
}
725725
return bResult;
726726
}
@@ -850,9 +850,9 @@ bool clsLEAMDNSHost_Legacy::removeServiceQuery(clsLEAMDNSHost_Legacy::hMDNSServi
850850

851851
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
852852
{
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])))
854854
{
855-
(*it).m_HandleToPtr.erase(p_hServiceQuery);
855+
it->m_HandleToPtr.erase(p_hServiceQuery);
856856
}
857857
}
858858
return bResult;
@@ -1101,7 +1101,7 @@ bool clsLEAMDNSHost_Legacy::setHostProbeResultCallback(clsLEAMDNSHost_Legacy::MD
11011101

11021102
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
11031103
{
1104-
bResult = (*it).m_pHost->setProbeResultCallback(clsLEAMDNSHost::stProbeResultCallback);
1104+
bResult = it->m_pHost->setProbeResultCallback(clsLEAMDNSHost::stProbeResultCallback);
11051105
}
11061106
return bResult;
11071107
}
@@ -1127,7 +1127,7 @@ bool clsLEAMDNSHost_Legacy::setHostProbeResultCallback(clsLEAMDNSHost_Legacy::MD
11271127

11281128
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
11291129
{
1130-
bResult = (*it).m_pHost->setProbeResultCallback(clsLEAMDNSHost::stProbeResultCallback);
1130+
bResult = it->m_pHost->setProbeResultCallback(clsLEAMDNSHost::stProbeResultCallback);
11311131
}
11321132
return bResult;
11331133
}
@@ -1144,7 +1144,7 @@ bool clsLEAMDNSHost_Legacy::setServiceProbeResultCallback(const clsLEAMDNSHost_L
11441144
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
11451145
{
11461146
clsLEAMDNSHost::clsService* pService = 0;
1147-
bResult = (((pService = (clsLEAMDNSHost::clsService*)(*it).m_HandleToPtr[p_hService]))
1147+
bResult = (((pService = (clsLEAMDNSHost::clsService*)it->m_HandleToPtr[p_hService]))
11481148
&& (pService->setProbeResultCallback(
11491149

11501150
[this, p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /*p_rMDNSService*/,
@@ -1173,7 +1173,7 @@ bool clsLEAMDNSHost_Legacy::setServiceProbeResultCallback(const clsLEAMDNSHost_L
11731173
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
11741174
{
11751175
clsLEAMDNSHost::clsService* pService = 0;
1176-
bResult = (((pService = (clsLEAMDNSHost::clsService*)(*it).m_HandleToPtr[p_hService]))
1176+
bResult = (((pService = (clsLEAMDNSHost::clsService*)it->m_HandleToPtr[p_hService]))
11771177
&& (pService->setProbeResultCallback([this, p_hService, p_fnCallback](clsLEAMDNSHost::clsService& /*p_rMDNSService*/,
11781178
const char* p_pcInstanceName,
11791179
bool p_bProbeResult)->void
@@ -1204,7 +1204,7 @@ bool clsLEAMDNSHost_Legacy::notifyAPChange(void)
12041204

12051205
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
12061206
{
1207-
bResult = (*it).m_pHost->restart();
1207+
bResult = it->m_pHost->restart();
12081208
}
12091209
return bResult;
12101210
}
@@ -1219,7 +1219,7 @@ bool clsLEAMDNSHost_Legacy::update(void)
12191219

12201220
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
12211221
{
1222-
bResult = (*it).m_pHost->update();
1222+
bResult = it->m_pHost->update();
12231223
}
12241224
return bResult;
12251225
}
@@ -1234,7 +1234,7 @@ bool clsLEAMDNSHost_Legacy::announce(void)
12341234

12351235
for (stcHostInformation::list::iterator it = m_HostInformations.begin(); ((bResult) && (it != m_HostInformations.end())); ++it)
12361236
{
1237-
bResult = (*it).m_pHost->announce(true, true);
1237+
bResult = it->m_pHost->announce(true, true);
12381238
}
12391239
return bResult;
12401240
}

0 commit comments

Comments
 (0)