qassert.h: fix typo
This amends 14d1108d3562f6e409505ba49b7bce82d70bd64f. Change-Id: I542659a9e518f0328018142a83d3171e9474e5b7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 7b3da9aa0421369f84e7a1ea32df350821440d4b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5b856ba18f
commit
af4b240b28
@ -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");\
|
||||
|
Loading…
x
Reference in New Issue
Block a user