diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 23:04:01 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 23:04:01 +0000 |
commit | 98ebe62da8fa6377863bc771a22a5d0cdce49348 (patch) | |
tree | 95e373f5bb0d1859e473e3364bf64d61244a04c0 /src | |
parent | 0e8a357147848b2643f41eb2c2a1ee331fea0880 (diff) |
More const references, this is nearly it apart from the module API..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3608 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base.cpp b/src/base.cpp index fc6e6583b..53ebda798 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -29,7 +29,7 @@ const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128}; extern time_t TIME; -bool Extensible::Extend(std::string key, char* p) +bool Extensible::Extend(const std::string &key, char* p) { // only add an item if it doesnt already exist if (this->Extension_Items.find(key) == this->Extension_Items.end()) @@ -42,7 +42,7 @@ bool Extensible::Extend(std::string key, char* p) return false; } -bool Extensible::Shrink(std::string key) +bool Extensible::Shrink(const std::string &key) { // only attempt to remove a map item that exists if (this->Extension_Items.find(key) != this->Extension_Items.end()) @@ -54,7 +54,7 @@ bool Extensible::Shrink(std::string key) return false; } -char* Extensible::GetExt(std::string key) +char* Extensible::GetExt(const std::string &key) { if (this->Extension_Items.find(key) != this->Extension_Items.end()) { |