type correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a8d7fb3955
commit
e883ef6a67
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class Foo_ptr {
|
||||||
mutable bool _own;
|
mutable bool _own;
|
||||||
|
|
||||||
public:
|
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() {
|
static Foo_ptr getPtr() {
|
||||||
return Foo_ptr(new Foo(17), true);
|
return Foo_ptr(new Foo(17), true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue