Doc: Clean up qforeach docs

* Don't attempt to link to std::as_const with \sa.
* Don't say 'please'.
* Describe what is, never what may come to be at some
  undefined point in the future.
* Format text properly.

Change-Id: I496d98c143d693b3f09753f91f2fa5327bbb9402
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
bb10
Paul Wicking 2022-11-04 06:55:36 +01:00
parent 46648436d4
commit 124d682739
1 changed files with 6 additions and 10 deletions

View File

@ -52,11 +52,9 @@
\snippet code/src_corelib_global_qglobal.cpp 33
\note Since Qt 5.7, the use of this macro is discouraged. It will
be removed in a future version of Qt. Please use C++11 range-for,
possibly with std::as_const(), as needed.
\sa std::as_const()
\note Since Qt 5.7, the use of this macro is discouraged.
Use C++11 range-based \c for, possibly with \c {std::as_const()},
as needed.
*/
/*!
@ -68,9 +66,7 @@
This macro is available even when \c no_keywords is specified
using the \c .pro file's \c CONFIG variable.
\note Since Qt 5.7, the use of this macro is discouraged. It will
be removed in a future version of Qt. Please use C++11 range-for,
possibly with std::as_const(), as needed.
\sa std::as_const()
\note Since Qt 5.7, the use of this macro is discouraged.
Use C++11 range-based \c for, possibly with \c {std::as_const()},
as needed.
*/