diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-07-21 12:14:16 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-07-24 11:03:19 +0000 |
commit | d04823e15ed0ce0e7809e0ef5f351cc2f786c01c (patch) | |
tree | 415b125297dfdd58a5b424836dbf918411f53d5a | |
parent | af8f4430c93ae4898075da6f3c62c463a4ee25f5 (diff) |
Use QSharedPointer::create() more
This is the result of running the (experimental) clang-tidy check
qt-modernize-qsharedpointer-create
Discarded changes: none.
Change-Id: I4eca880aac30cf595b7f0667c755dcad1734abcb
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | src/serialbus/qmodbusclient_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialbus/qmodbusclient_p.h b/src/serialbus/qmodbusclient_p.h index 50d73b2..2286fc8 100644 --- a/src/serialbus/qmodbusclient_p.h +++ b/src/serialbus/qmodbusclient_p.h @@ -110,7 +110,7 @@ public: { if (timeout >= 0) { // always the case for TCP - timer.reset(new QTimer); + timer = QSharedPointer<QTimer>::create(); timer->setSingleShot(true); timer->setInterval(timeout); } |