Fixed variable scope.
This keep the QByteArray live during the use of your content.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
af6514a1e8
commit
3468d8f78e
2 changed files with 2 additions and 1 deletions
|
|
@ -138,6 +138,7 @@ PYSIDE_API QString getCallbackSignature(const char* signal, QObject* receiver, P
|
||||||
* @param signature The signal signature
|
* @param signature The signal signature
|
||||||
* @param isShortCircuit If this is a shortCircuit(python<->python) signal
|
* @param isShortCircuit If this is a shortCircuit(python<->python) signal
|
||||||
* @return Return true if this is a Qt Signal of false if not
|
* @return Return true if this is a Qt Signal of false if not
|
||||||
|
* @todo replace return type to QList<QByteArray>
|
||||||
**/
|
**/
|
||||||
QStringList getArgsFromSignature(const char* signature, bool* isShortCircuit = 0);
|
QStringList getArgsFromSignature(const char* signature, bool* isShortCircuit = 0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ static bool emitNormalSignal(QObject* source, int signalIndex, const char* signa
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < argsGiven; ++i) {
|
for (i = 0; i < argsGiven; ++i) {
|
||||||
const char* typeName = argTypes[i].toAscii().constData();
|
QByteArray typeName = argTypes[i].toAscii();
|
||||||
Shiboken::TypeResolver* typeResolver = Shiboken::TypeResolver::get(typeName);
|
Shiboken::TypeResolver* typeResolver = Shiboken::TypeResolver::get(typeName);
|
||||||
if (typeResolver) {
|
if (typeResolver) {
|
||||||
int typeId = QMetaType::type(typeName);
|
int typeId = QMetaType::type(typeName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue