qassert.h: fix typo

This amends 14d1108d3562f6e409505ba49b7bce82d70bd64f.

Change-Id: I542659a9e518f0328018142a83d3171e9474e5b7
Pick-to: 6.7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2024-01-07 12:21:49 +02:00
parent 520d755d32
commit 7b3da9aa04

View File

@ -81,7 +81,7 @@ inline T *q_check_ptr(T *p) { Q_CHECK_PTR(p); return p; }
Q_DECL_DEPRECATED_X("Q_ASSUME() is deprecated because it can produce worse code than when it's absent; "
"use C++23 [[assume]] instead")
inline bool qt_assume_is_deprecateed(bool cond) noexcept { return cond; }
inline bool qt_assume_is_deprecated(bool cond) noexcept { return cond; }
#define Q_ASSUME(Expr) \
[] (bool valueOfExpression) {\
Q_ASSERT_X(valueOfExpression, "Q_ASSUME()", "Assumption in Q_ASSUME(\"" #Expr "\") was not correct");\