From 6351b5433da083890e47faa62e21fb40fd042c79 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 1 May 2021 16:58:21 +0200 Subject: [PATCH] QRandom: drop a usage of std::is_literal_type It's deprecated/removed, and indeed doesn't check anything that it's not also already being checked by the previous line. Change-Id: Ic80ca43f390dd989ced69f196efa7313069e7c6d Pick-to: 5.15 6.0 6.1 Reviewed-by: Thiago Macieira --- src/corelib/global/qrandom.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp index c978228094..272449438b 100644 --- a/src/corelib/global/qrandom.cpp +++ b/src/corelib/global/qrandom.cpp @@ -377,7 +377,6 @@ struct QRandomGenerator::SystemAndGlobalGenerators constexpr SystemAndGlobalGenerators g = {}; Q_UNUSED(g); - static_assert(std::is_literal_type::value); #endif }