QAccessibleWidgets: re-enable NRVO in childWidgets()

... for poor compilers such as GCC.

Change-Id: Ifcf603657ff6242599972c21b135d7b6a0af4c35
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Marc Mutz 2016-05-13 10:19:29 +02:00
parent 0290525ffb
commit a4084f6bf5
1 changed files with 2 additions and 2 deletions

View File

@ -101,9 +101,9 @@ QString qt_accHotKey(const QString &text);
QList<QWidget*> childWidgets(const QWidget *widget)
{
if (widget == 0)
return QList<QWidget*>();
QList<QWidget*> widgets;
if (!widget)
return widgets;
for (QObject *o : widget->children()) {
QWidget *w = qobject_cast<QWidget *>(o);
if (!w)