summaryrefslogtreecommitdiff
path: root/src/compat/nullpo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/nullpo.hpp')
-rw-r--r--src/compat/nullpo.hpp8
1 files changed, 4 insertions, 4 deletions
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<class T>
bool nullpo_chk(const char *, int, const char *, Borrowed<T>) = delete;
template<class T>
-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<const void *>(target));
}
template<class T>
-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<const void *>(target));
+ return nullpo_chk(file, line, func, target.operator->());
}
} // namespace tmwa