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-b...@kde.org
          Reporter: dism...@gmail.com
                CC: smart...@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 watching all bug changes.

Reply via email to