aboutsummaryrefslogtreecommitdiffstats
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>2012-03-08 16:56:15 -0300
commit5c076e1c5304fc31f981f9a4e80ce5a6602bbb9c (patch)
treed1232cac3272abfb5672a17bdcd7cdf37ca1647d /libpyside
parent67d6455fa52921d631001e7938aa7b9fa40b45aa (diff)
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 cb6b8612e..271ab4375 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;