On sexta-feira, 1 de março de 2013 10.52.41, Olivier Goffart wrote:
> qdisplayinfo_linux.cpp:50 is:
> Q_GLOBAL_STATIC_WITH_ARGS(const QString, BACKLIGHT_SYSFS_PATH,
>                                 (QStringLiteral("/sys/class/backlight/")))
>

> Is that something we should fix in Q_GLOBAL_STATIC_WITH_ARGS ?  or should
> we  jsut say that lambda expressions or QStringLiteral are not allowed in
> Q_GLOBAL_STATIC_WITH_ARGS ?

It's just too much overhead the way it's written. It's much simpler as:

static QString backlightSysfsPath()
{
    return QStringLiteral("/sys/class/backlight/");
}

QStringLiteral is optimised for that case.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to