Skip to content

Commit 691c083

Browse files
committed
const for some function members
1 parent e50ff18 commit 691c083

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/ESP8266mDNS/src/LEAmDNS2Host.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ bool clsLEAMDNSHost::hasQuery(void)
634634
clsLEAmDNS2_Host::getQuery
635635
636636
*/
637-
clsLEAMDNSHost::clsQuery* clsLEAMDNSHost::getQuery(void)
637+
clsLEAMDNSHost::clsQuery* clsLEAMDNSHost::getQuery(void) const
638638
{
639639
return _findLegacyQuery();
640640
}
@@ -1149,7 +1149,7 @@ bool clsLEAMDNSHost::_removeLegacyQuery(void)
11491149
clsLEAmDNS2_Host::_findLegacyQuery
11501150
11511151
*/
1152-
clsLEAMDNSHost::clsQuery* clsLEAMDNSHost::_findLegacyQuery(void)
1152+
clsLEAMDNSHost::clsQuery* clsLEAMDNSHost::_findLegacyQuery(void) const
11531153
{
11541154
clsQuery* pLegacyQuery = nullptr;
11551155

libraries/ESP8266mDNS/src/LEAmDNS2Host.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class clsLEAMDNSHost
206206
size_t hostCount(void) const;
207207
bool setDelayUDPProcessing(bool p_bDelayProcessing);
208208

209-
clsLEAMDNSHost* getUniqueHost()
209+
clsLEAMDNSHost* getUniqueHost() const
210210
{
211211
return m_uniqueHost;
212212
}
@@ -1226,7 +1226,7 @@ class clsLEAMDNSHost
12261226
const uint16_t p_u16Timeout);
12271227
bool removeQuery(void);
12281228
bool hasQuery(void);
1229-
clsQuery* getQuery(void);
1229+
clsQuery* getQuery(void) const;
12301230

12311231
// - DYNAMIC
12321232
// Install a dynamic service/host query. For every received answer (part) the given callback
@@ -1330,7 +1330,7 @@ class clsLEAMDNSHost
13301330
clsQuery* _allocQuery(clsQuery::enuQueryType p_QueryType);
13311331
bool _removeQuery(clsQuery* p_pQuery);
13321332
bool _removeLegacyQuery(void);
1333-
clsQuery* _findLegacyQuery(void);
1333+
clsQuery* _findLegacyQuery(void) const;
13341334
bool _releaseQueries(void);
13351335
clsQuery* _findNextQueryByDomain(const clsRRDomain& p_Domain,
13361336
const clsQuery::enuQueryType p_QueryType,

0 commit comments

Comments
 (0)