Commit 900c9940 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

cleanup: replaced unnecessary reinterpret_cast with static_cast


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac423@3770 e5f2f494-b856-4b98-b285-d166d9295462
parent a66dd981
......@@ -60,16 +60,16 @@ private:
template <typename FUNC>
static void invoke(void* func, RRsetPtr rrset) {
FUNC* funcobj = reinterpret_cast<FUNC*>(func);
FUNC* funcobj = static_cast<FUNC*>(func);
return ((*funcobj)(rrset));
}
template <typename FUNC>
static void cleanup(void* func) {
delete reinterpret_cast<FUNC*>(func);
delete static_cast<FUNC*>(func);
}
template <typename FUNC>
static void* copyFunctor(void* func) {
return (new FUNC(*reinterpret_cast<FUNC*>(func)));
return (new FUNC(*static_cast<FUNC*>(func)));
}
void* func_;
void (*invoker_)(void*, RRsetPtr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment