From b3112bd3f6d0887fdf81610327c9edad08a0cfaf Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 10 Jan 2015 17:32:49 -0800 Subject: Use generated config for map --- src/compat/nullpo.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compat') diff --git a/src/compat/nullpo.hpp b/src/compat/nullpo.hpp index 668f0a2..38c8e92 100644 --- a/src/compat/nullpo.hpp +++ b/src/compat/nullpo.hpp @@ -54,13 +54,13 @@ bool nullpo_chk(const char *file, int line, const char *func, template bool nullpo_chk(const char *, int, const char *, Borrowed) = delete; template -bool nullpo_chk(const char *file, int line, const char *func, T target) +bool nullpo_chk(const char *file, int line, const char *func, T *target) { - return nullpo_chk(file, line, func, target.operator->()); + return nullpo_chk(file, line, func, static_cast(target)); } template -bool nullpo_chk(const char *file, int line, const char *func, T *target) +bool nullpo_chk(const char *file, int line, const char *func, T target) { - return nullpo_chk(file, line, func, static_cast(target)); + return nullpo_chk(file, line, func, target.operator->()); } } // namespace tmwa -- cgit v1.2.3-60-g2f50