summaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-26 20:20:22 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-10-27 11:12:13 -0200
commit1c135f7a59dbcdc798b8200904804bfcf6a050c0 (patch)
treeaab5002f829b865ef4c50db1bbe6ec3b98058e57 /libpyside
parentce98b29233fcdf4bfa5c8481c1765cb135b71f48 (diff)
downloadpyside-1c135f7a59dbcdc798b8200904804bfcf6a050c0.tar.gz
pyside-1c135f7a59dbcdc798b8200904804bfcf6a050c0.tar.xz
pyside-1c135f7a59dbcdc798b8200904804bfcf6a050c0.zip
Reduce the memory used by PySideMetaFunction instances.
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/pysidemetafunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpyside/pysidemetafunction.cpp b/libpyside/pysidemetafunction.cpp
index cb6b861..271ab43 100644
--- a/libpyside/pysidemetafunction.cpp
+++ b/libpyside/pysidemetafunction.cpp
@@ -34,7 +34,7 @@ extern "C"
struct PySideMetaFunctionPrivate
{
QObject* qobject;
- QMetaMethod method;
+ int methodIndex;
};
//methods
@@ -101,7 +101,7 @@ PyObject* functionCall(PyObject* self, PyObject* args, PyObject* kw)
PySideMetaFunction* function = reinterpret_cast<PySideMetaFunction*>(self);
PyObject* retVal;
- if (!PySide::MetaFunction::call(function->d->qobject, function->d->method.methodIndex(), args, &retVal))
+ if (!PySide::MetaFunction::call(function->d->qobject, function->d->methodIndex, args, &retVal))
return 0;
return retVal;
}
@@ -129,7 +129,7 @@ PySideMetaFunction* newObject(QObject* source, int methodIndex)
PySideMetaFunction* function = PyObject_New(PySideMetaFunction, &PySideMetaFunctionType);
function->d = new PySideMetaFunctionPrivate();
function->d->qobject = source;
- function->d->method = method;
+ function->d->methodIndex = methodIndex;
return function;
}
return 0;