forked from mia/Aegisub
Make scoped_ptr's constructor explicit
Originally committed to SVN as r5202.
This commit is contained in:
parent
71937757a2
commit
1aeded1a29
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
void swap(scoped_ptr &b) { using std::swap; swap(ptr, b.ptr); }
|
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; }
|
~scoped_ptr() { delete ptr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue