dns_utils: add a const where possible

This commit is contained in:
moneromooo-monero 2015-08-27 21:08:40 +01:00
parent f43d465da2
commit ae5f28cb51
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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