diff options
author | Paul Wicking <paul.wicking@qt.io> | 2022-11-04 06:55:36 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2022-11-04 15:50:10 +0100 |
commit | 124d68273952ada7c64f99dea9dbb94aab6aefe6 (patch) | |
tree | fa54b28fe88c1a0dd6f84b79ff639793194f6b88 /src/corelib/global/qforeach.qdoc | |
parent | 46648436d4dae529b81f5d7a987c0016cf54bf6d (diff) |
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>
Diffstat (limited to 'src/corelib/global/qforeach.qdoc')
-rw-r--r-- | src/corelib/global/qforeach.qdoc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/corelib/global/qforeach.qdoc b/src/corelib/global/qforeach.qdoc index 632c9dd676..e6abf0e29c 100644 --- a/src/corelib/global/qforeach.qdoc +++ b/src/corelib/global/qforeach.qdoc @@ -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. */ |