Change-Id: Iac8fd75a805a7f62638275fe05123a13198d5260
Reviewed-on: http://codereview.qt-project.org/4489
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
if (data->isSignal()) {
int length = methodName.length();
- char str[length + 3];
+ QVarLengthArray<char, 128> str(length+3);
str[0] = 'o';
str[1] = 'n';
str[2] = toupper(signature[0]);
memcpy(&str[3], &signature[1], length - 1);
str[length + 2] = '\0';
- QHashedString on(QString::fromLatin1(str));
+ QHashedString on(QString::fromLatin1(str.data()));
stringCache.insert(on, sigdata);
++signalHandlerIndex;
}