From da18a576a9e069227c87ecd4e89f8daee2c88c87 Mon Sep 17 00:00:00 2001 From: Rym Bouabid Date: Thu, 11 Apr 2024 13:18:36 +0200 Subject: [PATCH] QRandomGenerator: Add destructor While not needed from the C++ side of things, the missing dtor in conjunction with the out-of-line copy SMFs is freaking out style checkers that check for Rule Of Three/Five/Zero, so just =default the destructor. Pick-to: 6.7 6.5 Task-number: QTBUG-124643 Change-Id: Ic21e7c0e4f0630d60eaff724e2f9d6897b720164 Reviewed-by: Thiago Macieira (cherry picked from commit dd7ad8f8ae44e1ad01c370cd4a0558c5e66efeb8) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qrandom.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/global/qrandom.h b/src/corelib/global/qrandom.h index f8e53f4009e..5ac864e79ef 100644 --- a/src/corelib/global/qrandom.h +++ b/src/corelib/global/qrandom.h @@ -39,6 +39,8 @@ public: Q_CORE_EXPORT QRandomGenerator(const QRandomGenerator &other); Q_CORE_EXPORT QRandomGenerator &operator=(const QRandomGenerator &other); + ~QRandomGenerator() = default; + friend Q_CORE_EXPORT bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2); friend bool operator!=(const QRandomGenerator &rng1, const QRandomGenerator &rng2) {