From 180ac9e4d28a004f544113dfdef03c69c9ca4555 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 3 Dec 2009 01:17:08 +0000 Subject: 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 --- include/services.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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(p))).second; + return this->Extension_Items.insert(std::make_pair(key, p)).second; } /** Extend an Extensible class. -- cgit