type correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c89401112f
commit
c3c45d9931
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class Foo_ptr {
|
|||
mutable bool _own;
|
||||
|
||||
public:
|
||||
Foo_ptr(Foo *p, int own = false): _ptr(p), _own(own) {}
|
||||
Foo_ptr(Foo *p, bool own = false): _ptr(p), _own(own) {}
|
||||
static Foo_ptr getPtr() {
|
||||
return Foo_ptr(new Foo(17), true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue