From 8789ace197bfcc209002f9f8ec30f00e9cf25e8a Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 19 May 2021 13:12:19 +0200 Subject: [PATCH] QPromise: code tidies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Get rid of a reduntant initialization; a data member gets default initialized anyways. Change-Id: I85ad4c9a00b3066ccd993dfc2652a3f0164a860e Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Sona Kurazyan Reviewed-by: Andrei Golubev --- src/corelib/thread/qpromise.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/thread/qpromise.h b/src/corelib/thread/qpromise.h index 24b0cd1e801..afe51e07d0c 100644 --- a/src/corelib/thread/qpromise.h +++ b/src/corelib/thread/qpromise.h @@ -112,7 +112,7 @@ public: bool addResult(T &&result, int index = -1) { } #endif private: - mutable QFutureInterface d = QFutureInterface(); + mutable QFutureInterface d; }; template