mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
modpython: Switch from CSmartPtr to std::shared_ptr
Patch by DarthGandalf, I just committed it to git. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -292,7 +292,7 @@ while (<$in>) {
|
||||
say $out "Py_BuildValue(\"l\", (long int)$a->{var});";
|
||||
}
|
||||
}
|
||||
when (/^CSmartPtr/) {
|
||||
when (/^std::shared_ptr/) {
|
||||
say $out "SWIG_NewInstanceObj(new $a->{type}($a->{var}), SWIG_TypeQuery(\"$a->{type}*\"), SWIG_POINTER_OWN);";
|
||||
}
|
||||
when (/\*$/) {
|
||||
|
||||
Reference in New Issue
Block a user