From 1aeded1a29d951c7bcdadbbf1924369c3245266c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 16 Jan 2011 07:16:07 +0000 Subject: [PATCH] Make scoped_ptr's constructor explicit Originally committed to SVN as r5202. --- aegisub/libaegisub/include/libaegisub/scoped_ptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/libaegisub/include/libaegisub/scoped_ptr.h b/aegisub/libaegisub/include/libaegisub/scoped_ptr.h index 44eb9d1fc..be8cc8f51 100644 --- a/aegisub/libaegisub/include/libaegisub/scoped_ptr.h +++ b/aegisub/libaegisub/include/libaegisub/scoped_ptr.h @@ -43,7 +43,7 @@ public: void swap(scoped_ptr &b) { using std::swap; swap(ptr, b.ptr); } - scoped_ptr(T *ptr = NULL) : ptr(ptr){ } + explicit scoped_ptr(T *ptr = NULL) : ptr(ptr){ } ~scoped_ptr() { delete ptr; } };