summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-03 01:17:08 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-03 01:17:08 +0000
commit180ac9e4d28a004f544113dfdef03c69c9ca4555 (patch)
treec16b62d06d17957479ce164d88740de4ac382019
parentd4b595fdb88817a434a77e689c756576678d35dd (diff)
Changed Extensible::Extend to not unnecessarially cast every pointer it recieves to char* and then to void*, but to just change it to void*. This allows storing of various things that the char* cast messed up, such as time_t etc
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2681 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--include/services.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/services.h b/include/services.h
index 6901c61b0..2278d21d4 100644
--- a/include/services.h
+++ b/include/services.h
@@ -328,7 +328,7 @@ class CoreExport Extensible
* the return value is a std::pair of an iterator to the
* element, and a bool saying if it was actually inserted.
*/
- return this->Extension_Items.insert(std::make_pair(key, reinterpret_cast<char *>(p))).second;
+ return this->Extension_Items.insert(std::make_pair(key, p)).second;
}
/** Extend an Extensible class.