[clazy] [Bug 391807] New: Not possible to use Q_GLOBAL_STATIC with QStringLiteral.
Roman
bugzilla_noreply at kde.org
Tue Mar 13 11:59:22 GMT 2018
https://bugs.kde.org/show_bug.cgi?id=391807
Bug ID: 391807
Summary: Not possible to use Q_GLOBAL_STATIC with
QStringLiteral.
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: dismine at gmail.com
CC: smartins at kde.org
Target Milestone: ---
Looks like it is impossible to use Q_GLOBAL_STATIC with QStringLiteral.
Q_GLOBAL_STATIC_WITH_ARGS(const QString, strUnit, (QStringLiteral("unit")))
It just won't compile. I get error "lambda expression in an unevaluated
operand".
But if i switch to
Q_GLOBAL_STATIC_WITH_ARGS(const QString, strUnit, (QLatin1String("unit")))
i get warning "qstring-allocations" from clazy.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list