QAtomicScopedValueRollback: make store_part() static

... because we can.

Pick-to: 6.6 6.5
Task-number: QTBUG-115107
Change-Id: I23b5edc6111615cbd0352847b2f1a1667948c40a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Marc Mutz 2023-09-29 15:06:33 +02:00
parent 88c74240a8
commit e054d9f558

View File

@ -31,7 +31,7 @@ class QAtomicScopedValueRollback
Q_DISABLE_COPY_MOVE(QAtomicScopedValueRollback)
constexpr std::memory_order store_part(std::memory_order mo) noexcept
static constexpr std::memory_order store_part(std::memory_order mo) noexcept
{
switch (mo) {
case std::memory_order_relaxed: