From 231fec7ca2f61da7d94c8aa072b41fd7ee893861 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 9 Oct 2021 15:06:03 +0200 Subject: corelib: Fix typos in source code comments Pick-to: 6.2 Change-Id: Ic78afb67143112468c6f84677ac88f27a74b53aa Reviewed-by: Edward Welbourne --- src/corelib/global/q20algorithm.h | 4 ++-- src/corelib/global/q20functional.h | 4 ++-- src/corelib/global/qconfig.cpp.in | 2 +- src/corelib/global/qendian.h | 4 ++-- src/corelib/global/qlogging.cpp | 4 ++-- src/corelib/global/qrandom.cpp | 2 +- src/corelib/global/qt_pch.h | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/corelib/global') diff --git a/src/corelib/global/q20algorithm.h b/src/corelib/global/q20algorithm.h index d8e5f51fa0..3024e89c6d 100644 --- a/src/corelib/global/q20algorithm.h +++ b/src/corelib/global/q20algorithm.h @@ -53,9 +53,9 @@ // may use these definitions in your own code, but be aware that we // will remove them once Qt depends on the C++ version that supports // them in namespace std. There will be NO deprecation warning, the -// definitons will JUST go away. +// definitions will JUST go away. // -// If you can't agree to these terms, don't use these definitons! +// If you can't agree to these terms, don't use these definitions! // // We mean it. // diff --git a/src/corelib/global/q20functional.h b/src/corelib/global/q20functional.h index f35614f837..300c4b8dd8 100644 --- a/src/corelib/global/q20functional.h +++ b/src/corelib/global/q20functional.h @@ -52,9 +52,9 @@ // may use these definitions in your own code, but be aware that we // will remove them once Qt depends on the C++ version that supports // them in namespace std. There will be NO deprecation warning, the -// definitons will JUST go away. +// definitions will JUST go away. // -// If you can't agree to these terms, don't use these definitons! +// If you can't agree to these terms, don't use these definitions! // // We mean it. // diff --git a/src/corelib/global/qconfig.cpp.in b/src/corelib/global/qconfig.cpp.in index 4e373888e2..f6ce335599 100644 --- a/src/corelib/global/qconfig.cpp.in +++ b/src/corelib/global/qconfig.cpp.in @@ -1,6 +1,6 @@ /* This file is used to generate the Qt configuration info for the Core library. * The 'qt_generate_qconfig_cpp' cmake routine - * contains variables that replace '@' entires in this file. It's important to + * contains variables that replace '@' entries in this file. It's important to * align these values with the following: * * - QLibraryInfo::LibraryPath enum in qtbase/src/corelib/global/qlibraryinfo.h diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h index c874c5e47a..759b3b09ec 100644 --- a/src/corelib/global/qendian.h +++ b/src/corelib/global/qendian.h @@ -127,7 +127,7 @@ inline constexpr quint8 qbswap_helper(quint8 source) /* * T qbswap(T source). - * Changes the byte order of a value from big endian to little endian or vice versa. + * Changes the byte order of a value from big-endian to little-endian or vice versa. * This function can be used if you are not concerned about alignment issues, * and it is therefore a bit more convenient and in most cases more efficient. */ @@ -164,7 +164,7 @@ inline double qbswap(double source) /* * qbswap(const T src, const void *dest); - * Changes the byte order of \a src from big endian to little endian or vice versa + * Changes the byte order of \a src from big-endian to little-endian or vice versa * and stores the result in \a dest. * There is no alignment requirements for \a dest. */ diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 0298ec7c4d..cbb9e1963c 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1090,7 +1090,7 @@ struct QMessagePattern QString backtraceSeparator; int backtraceDepth; }; - QList backtraceArgs; // backtrace argumens in sequence of %{backtrace + QList backtraceArgs; // backtrace arguments in sequence of %{backtrace #endif bool fromEnvironment; @@ -1497,7 +1497,7 @@ static QBasicAtomicPointer seed = Q_BASIC_ATOMIC_INITIALIZER(0U); static void fallback_update_seed(unsigned value) { - // Update the seed to be used for the fallback mechansim, if we need to. + // Update the seed to be used for the fallback mechanism, if we need to. // We can't use QtPrivate::QHashCombine here because that is not an atomic // operation. A simple XOR will have to do then. seed.fetchAndXorRelaxed(value); diff --git a/src/corelib/global/qt_pch.h b/src/corelib/global/qt_pch.h index 6108b075f0..eccb7ba169 100644 --- a/src/corelib/global/qt_pch.h +++ b/src/corelib/global/qt_pch.h @@ -72,7 +72,7 @@ __declspec(selectany) auto *__wmemchr_symbol_loader_value = wmemchr(L"", L'0', 0 # include # include # include -# include /* All moc genereated code has this include */ +# include /* All moc generated code has this include */ # include # if QT_CONFIG(regularexpression) # include -- cgit v1.2.3