Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40508

lupdate breaks wth uniform initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.3.1
    • Translations (l10n)
    • None

    Description

      If a class calls its base constructor or initializes any member using braced uniform initialization syntax (eg. Base{}), lupdate places all strings in the parent namespace instead of the class. Example:

      namespace N {
      class A
      : public B
      {
      ...
      };
      }

      ...

      A::A()
      : B{}
      {
      const auto s = tr("text");
      }

      "text" will be put in "N" context instead of "N::A".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            krojew Kamil Rojewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes