dns_utils: add a const where possible
This commit is contained in:
parent
f43d465da2
commit
ae5f28cb51
|
@ -343,7 +343,7 @@ DNSResolver DNSResolver::create()
|
||||||
return DNSResolver();
|
return DNSResolver();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DNSResolver::check_address_syntax(const char *addr)
|
bool DNSResolver::check_address_syntax(const char *addr) const
|
||||||
{
|
{
|
||||||
// if string doesn't contain a dot, we won't consider it a url for now.
|
// if string doesn't contain a dot, we won't consider it a url for now.
|
||||||
if (strchr(addr,'.') == NULL)
|
if (strchr(addr,'.') == NULL)
|
||||||
|
|
|
@ -137,7 +137,7 @@ private:
|
||||||
*
|
*
|
||||||
* @return true if it looks enough like a URL, false if not
|
* @return true if it looks enough like a URL, false if not
|
||||||
*/
|
*/
|
||||||
bool check_address_syntax(const char *addr);
|
bool check_address_syntax(const char *addr) const;
|
||||||
|
|
||||||
DNSResolverData *m_data;
|
DNSResolverData *m_data;
|
||||||
}; // class DNSResolver
|
}; // class DNSResolver
|
||||||
|
|
Loading…
Reference in New Issue