From 124d68273952ada7c64f99dea9dbb94aab6aefe6 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 4 Nov 2022 06:55:36 +0100 Subject: Doc: Clean up qforeach docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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ƶ --- src/corelib/global/qforeach.qdoc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/corelib/global') 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. */ -- cgit v1.2.3