The 'worker' function argument shadows the class member of the same
name, and 'worker = worker;' assigns the function argument to itself,
not to the member as intended.
examples/tutorials/threads/movedobject/thread.cpp:69: warning:
explicitly assigning a variable of type 'QObject *' to itself [-Wself-
worker = worker;
~~~~~~ ^ ~~~~~~
Change-Id: If4adf486a86a4ba4e7f7040a7771a70b7dd9aa86
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
|
||
|---|---|---|
| .. | ||
| animation | ||
| dbus | ||
| desktop | ||
| dialogs | ||
| draganddrop | ||
| effects | ||
| embedded | ||
| gestures | ||
| graphicsview | ||
| ipc | ||
| itemviews | ||
| ja_JP/linguist/hellotr | ||
| layouts | ||
| linguist | ||
| mainwindows | ||
| network | ||
| opengl | ||
| painting | ||
| qmake | ||
| qpa | ||
| qtconcurrent | ||
| qtestlib | ||
| qws | ||
| richtext | ||
| scroller | ||
| sql | ||
| statemachine | ||
| threads | ||
| tools | ||
| touch | ||
| tutorials | ||
| webkit/webkit-guide | ||
| widgets | ||
| xml | ||
| README | ||
| examples.pro | ||
README
Qt is supplied with a number of example applications that have been written to provide developers with examples of the Qt API in use, highlight good programming practice, and showcase features found in each of Qt's core technologies. Documentation for examples can be found in the Examples section of the Qt documentation.