diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2016-02-15 22:29:44 +0100 |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2016-02-17 22:41:32 +0000 |
commit | d562c7761e90dcd3eb9b6270ac5977327e04c924 (patch) | |
tree | 1f07799b5d46050619179a6525fa9a22351b0176 | |
parent | aae362e2fe3c0a71dd6d01eaf7f20085506ef7f4 (diff) |
Fix typos in qOverload documentation
Change-Id: I92f99623f659543934c52961307b0b53c8520948
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-rw-r--r-- | src/corelib/global/qglobal.cpp | 14 |
1 files 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 <QtGlobal> \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 <QtGlobal> \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 <QtGlobal> \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 |