diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-12 16:56:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-12 16:56:02 +0000 |
commit | 3a7fa1660c3d78f1f80f3502a8dae77642d3c3f9 (patch) | |
tree | 7b083b597727330920a5c70ca92a8c4a25982708 /src | |
parent | 1135a57ace24193f26ed3e679ca0945d97398988 (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')
-rw-r--r-- | src/dns.cpp | 10 | ||||
-rw-r--r-- | src/dnsqueue.cpp | 2 | ||||
-rw-r--r-- | src/inspircd_io.cpp | 2 |
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()) |