mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
dns_utils: add a const where possible
This commit is contained in:
parent
f43d465da2
commit
ae5f28cb51
2 changed files with 2 additions and 2 deletions
|
@ -343,7 +343,7 @@ DNSResolver DNSResolver::create()
|
|||
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 (strchr(addr,'.') == NULL)
|
||||
|
|
|
@ -137,7 +137,7 @@ private:
|
|||
*
|
||||
* @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;
|
||||
}; // class DNSResolver
|
||||
|
|
Loading…
Reference in a new issue