summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp10
-rw-r--r--src/dnsqueue.cpp2
-rw-r--r--src/inspircd_io.cpp2
3 files changed, 7 insertions, 7 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++;
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 6d62b7ede..f14fd8c04 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -205,7 +205,7 @@ public:
}
};
-bool lookup_dns(std::string nick)
+bool lookup_dns(const std::string &nick)
{
/* First attempt to find the nickname */
userrec* u = Find(nick);
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index e8ef405a4..2ca54d24d 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -839,7 +839,7 @@ void Start (void)
printf("Name concept:\t\t\033[1;32mLord_Zathras\033[0m\n\n");
}
-void WritePID(std::string filename)
+void WritePID(const std::string &filename)
{
ofstream outfile(filename.c_str());
if (outfile.is_open())