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:
Renato Araujo Oliveira Filho 2010-12-22 19:12:42 -03:00 committed by Hugo Parente Lima
commit 3468d8f78e
2 changed files with 2 additions and 1 deletions

View file

@ -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);