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

Wrong arguments order in a warning in QObject::moveToThread

    XMLWordPrintable

Details

    • b7f48eee301e973fcfae08dfd8997538b6dbe251

    Description

      qWarning("QObject::moveToThread: Current thread (%p) is not the object's thread (%p).\n"
      "Cannot move to target thread (%p)\n",
      d->threadData->thread, currentData->thread, targetData->thread);

      currentData->thread should probably be the first argument (for current thread) and d->threadData->thread should follow as the object's thread.

      It probably should be like this:
      qWarning("QObject::moveToThread: Current thread (%p) is not the object's thread (%p).\n"
      "Cannot move to target thread (%p)\n",
      currentData->thread, d->threadData->thread, targetData->thread);

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            artem Artem Garmash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes