Create empty list only if it's needed in QMetaMethod::parameterNames
Change-Id: I2d370dff0c4939f27709db0ebf2b15a15eb14877 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
ccf26f6a88
commit
7bf4ebfb26
|
|
@ -1968,9 +1968,8 @@ QList<QByteArray> QMetaMethod::parameterTypes() const
|
|||
*/
|
||||
QList<QByteArray> QMetaMethod::parameterNames() const
|
||||
{
|
||||
QList<QByteArray> list;
|
||||
if (!mobj)
|
||||
return list;
|
||||
return QList<QByteArray>();
|
||||
return QMetaMethodPrivate::get(this)->parameterNames();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue