From d562c7761e90dcd3eb9b6270ac5977327e04c924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Mon, 15 Feb 2016 22:29:44 +0100 Subject: [PATCH] Fix typos in qOverload documentation Change-Id: I92f99623f659543934c52961307b0b53c8520948 Reviewed-by: Marc Mutz Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/corelib/global/qglobal.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index e4fa0f7391..3ea121fcc2 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -925,17 +925,17 @@ Q_STATIC_ASSERT_X(QT_POINTER_SIZE == sizeof(void *), "QT_POINTER_SIZE defined in \relates \since 5.7 - qOverload() returns a pointer to an overloaded function. The template + Returns a pointer to an overloaded function. The template parameter is the list of the argument types of the function. \a functionPointer is the pointer to the (member) function: \snippet code/src_corelib_global_qglobal.cpp 52 - If a member function is also const-overladed \l qConstOverload and - \l qNonConstOverload needs to be used. + If a member function is also const-overloaded \l qConstOverload and + \l qNonConstOverload need to be used. - qOverload() needs C++14 enabled. In C++11 only code the helper - classes QOverload, QConstOverload, and QNonConstOverload could be used directly: + qOverload() requires C++14 enabled. In C++11-only code, the helper + classes QOverload, QConstOverload, and QNonConstOverload can be used directly: \snippet code/src_corelib_global_qglobal.cpp 53 @@ -946,7 +946,7 @@ Q_STATIC_ASSERT_X(QT_POINTER_SIZE == sizeof(void *), "QT_POINTER_SIZE defined in \relates \since 5.7 - qConstOverload() returns a pointer to an constant member function: + Returns a pointer to a constant member function: \snippet code/src_corelib_global_qglobal.cpp 54 @@ -957,7 +957,7 @@ Q_STATIC_ASSERT_X(QT_POINTER_SIZE == sizeof(void *), "QT_POINTER_SIZE defined in \relates \since 5.7 - qNonConstOverload() eturns a pointer to an non constant member function: + Returns a pointer to a non-constant member function: \snippet code/src_corelib_global_qglobal.cpp 54