summaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-12-22 19:12:42 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-12-22 19:49:50 -0300
commit401f3941795f5d1c51d692da3261791a8d74bc9d (patch)
tree7161baad634c1a831ff1f2166c78e81bba6ccb9b /libpyside
parentaf0860ba4ae8828a13a8674a6b365a5259076875 (diff)
downloadpyside-401f3941795f5d1c51d692da3261791a8d74bc9d.tar.gz
pyside-401f3941795f5d1c51d692da3261791a8d74bc9d.tar.xz
pyside-401f3941795f5d1c51d692da3261791a8d74bc9d.zip
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>
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/pysidesignal.h1
-rw-r--r--libpyside/signalmanager.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/libpyside/pysidesignal.h b/libpyside/pysidesignal.h
index fb7c8f9..443572c 100644
--- a/libpyside/pysidesignal.h
+++ b/libpyside/pysidesignal.h
@@ -138,6 +138,7 @@ PYSIDE_API QString getCallbackSignature(const char* signal, QObject* receiver, P
* @param signature The signal signature
* @param isShortCircuit If this is a shortCircuit(python<->python) signal
* @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);
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 31621a7..6cdc3e1 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -199,7 +199,7 @@ static bool emitNormalSignal(QObject* source, int signalIndex, const char* signa
int 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);
if (typeResolver) {
int typeId = QMetaType::type(typeName);