summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-12 16:56:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-12 16:56:02 +0000
commit3a7fa1660c3d78f1f80f3502a8dae77642d3c3f9 (patch)
tree7b083b597727330920a5c70ca92a8c4a25982708 /src/dns.cpp
parent1135a57ace24193f26ed3e679ca0945d97398988 (diff)
Const refs (this is about the last of them in the core api)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3694 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index ef3eb704e..dc25fe8fe 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -684,13 +684,13 @@ DNS::DNS()
log(DEBUG,"Create blank DNS");
}
-DNS::DNS(std::string dnsserver)
+DNS::DNS(const std::string &dnsserver)
{
dns_init_2(dnsserver.c_str());
log(DEBUG,"Create DNS with server '%s'",dnsserver.c_str());
}
-void DNS::SetNS(std::string dnsserver)
+void DNS::SetNS(const std::string &dnsserver)
{
dns_init_2(dnsserver.c_str());
log(DEBUG,"Set NS");
@@ -700,7 +700,7 @@ DNS::~DNS()
{
}
-bool DNS::ReverseLookup(std::string ip)
+bool DNS::ReverseLookup(const std::string &ip)
{
if (ServerInstance && ServerInstance->stats)
ServerInstance->stats->statsDns++;
@@ -723,7 +723,7 @@ bool DNS::ReverseLookup(std::string ip)
return true;
}
-bool DNS::ForwardLookup(std::string host)
+bool DNS::ForwardLookup(const std::string &host)
{
if (ServerInstance && ServerInstance->stats)
ServerInstance->stats->statsDns++;
@@ -740,7 +740,7 @@ bool DNS::ForwardLookup(std::string host)
return true;
}
-bool DNS::ForwardLookupWithFD(std::string host, int &fd)
+bool DNS::ForwardLookupWithFD(const std::string &host, int &fd)
{
if (ServerInstance && ServerInstance->stats)
ServerInstance->stats->statsDns++;