Specify to call QLocalSocket's close in dtor
Specify that we're calling QLocalSocket::close in dtor. While it's virtual it will not call any overloads at this time. From cppcheck. Change-Id: I7b8030ab96e1568cbb2a378ceaf07b2ecabf054f Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
e6b9d11581
commit
6fe5392178
@ -368,7 +368,7 @@ QLocalSocket::QLocalSocket(QObject * parent)
|
||||
*/
|
||||
QLocalSocket::~QLocalSocket()
|
||||
{
|
||||
close();
|
||||
QLocalSocket::close();
|
||||
#if !defined(Q_OS_WIN) && !defined(QT_LOCALSOCKET_TCP)
|
||||
Q_D(QLocalSocket);
|
||||
d->unixSocket.setParent(0);
|
||||
|
Loading…
Reference in New Issue
Block a user