summaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2015-01-10 17:32:49 -0800
committerBen Longbons <b.r.longbons@gmail.com>2015-01-23 01:57:20 -0800
commitb3112bd3f6d0887fdf81610327c9edad08a0cfaf (patch)
treee1b1099468399a3b22852a5947a3cac47da904ca /src/compat
parentc482e420bcf447073ffe3ff8a106a0561e0baadd (diff)
downloadtmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.gz
tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.bz2
tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.xz
tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.zip
Use generated config for map
Diffstat (limited to 'src/compat')
-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