summaryrefslogtreecommitdiff
path: root/python/hashstring.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-27 15:11:39 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-27 15:11:39 +0100
commitd24964f86e1108f88d55a9580bbd6d2e482562dd (patch)
tree1b039b234a05daf80432bf7576f3ddddd2c5533a /python/hashstring.cc
parent2bb149489844096c55e9e90379795930171a6f73 (diff)
downloadpython-apt-d24964f86e1108f88d55a9580bbd6d2e482562dd.tar.gz
Merge the CppOwnedPyObject C++ class into CppPyObject.
Diffstat (limited to 'python/hashstring.cc')
-rw-r--r--python/hashstring.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/hashstring.cc b/python/hashstring.cc
index 90c80e4c..d4b7a3b2 100644
--- a/python/hashstring.cc
+++ b/python/hashstring.cc
@@ -31,7 +31,7 @@ static PyObject *hashstring_new(PyTypeObject *type,PyObject *Args,
if (PyArg_ParseTupleAndKeywords(Args, kwds, "s|s:__new__", kwlist, &Type,
&Hash) == 0)
return 0;
- CppPyObject<HashString*> *PyObj = CppPyObject_NEW<HashString*>(type);
+ CppPyObject<HashString*> *PyObj = CppPyObject_NEW<HashString*>(NULL, type);
if (Hash)
PyObj->Object = new HashString(Type,Hash);
else // Type is the combined form now (i.e. type:hash)