qt6-bb10/src/corelib/kernel
Marc Mutz aa37e67ef7 Port from qAsConst() to std::as_const()
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.

Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace, with manual
unstaging of the actual definition and documentation in dist/,
src/corelib/doc/ and src/corelib/global/.

Task-number: QTBUG-99313
Change-Id: I4c7114444a325ad4e62d0fcbfd347d2bbfb21541
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2022-10-11 23:17:18 +02:00
..
QEVENTDISPATCHER_CF_LICENSE.txt Document use of BSD code in Qt Core 2016-10-28 12:46:39 +00:00
qabstracteventdispatcher.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qabstracteventdispatcher.h Migrate QBasicTimer from int to qint64 2022-08-30 15:46:01 +02:00
qabstracteventdispatcher_p.h Fix return value of qGlobalPostedEventsCount() 2022-05-18 17:54:15 +02:00
qabstractnativeeventfilter.cpp QAbstractNativeEventFilter: Add a Windows example 2022-08-02 19:12:39 +01:00
qabstractnativeeventfilter.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qapplicationstatic.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qapplicationstatic.qdoc Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qassociativeiterable.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qassociativeiterable.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbasictimer.cpp Migrate QBasicTimer from int to qint64 2022-08-30 15:46:01 +02:00
qbasictimer.h Replace qExchange calls with std::exchange 2022-09-28 17:39:21 +00:00
qbindingstorage.h QThread: Clean up bindingStatusOrList if object gets deleted 2022-07-14 19:34:46 +02:00
qcfsocketnotifier.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qcfsocketnotifier_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcore_foundation.mm Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcore_mac.mm Use correct calling frame for QMacAutoReleasePool debug tracker 2022-09-07 23:58:12 +02:00
qcore_mac_p.h Replace qExchange with std::exchange 2022-10-07 18:11:36 +02:00
qcore_unix.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcore_unix_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcoreapplication.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qcoreapplication.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcoreapplication_mac.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcoreapplication_p.h Q*ApplicationPrivate: remove unused "flags" arguments 2022-06-14 00:58:22 +00:00
qcoreapplication_platform.h Return specific types for frequently used Java objects 2022-05-17 00:34:06 +02:00
qcoreapplication_win.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcorecmdlineargs_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcoreevent.cpp Convert Since ... comments on \value lines to [since ...] parameters 2022-05-31 14:09:28 +02:00
qcoreevent.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdeadlinetimer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdeadlinetimer.h Remove preprocessor conditionals for chrono include 2022-09-16 08:09:05 +02:00
qdeadlinetimer_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer_generic.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer_mac.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer_unix.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer_win.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventdispatcher_cf.mm QEventDispatcherCoreFoundation: fix #include moc location in the file 2022-07-20 01:17:20 -07:00
qeventdispatcher_cf_p.h Add a way to declare _exported_ logging categories 2022-06-27 00:12:56 +02:00
qeventdispatcher_glib.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qeventdispatcher_glib_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventdispatcher_unix.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qeventdispatcher_unix_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventdispatcher_wasm.cpp Introduce centralized means of checking for asyncify 2022-09-23 10:14:28 +02:00
qeventdispatcher_wasm_p.h wasm: remove dead qt_asyncify_yield() code 2022-08-17 04:52:46 +02:00
qeventdispatcher_win.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qeventdispatcher_win_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventloop.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventloop.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventloop_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfunctions_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfunctions_vxworks.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfunctions_vxworks.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfunctions_win.cpp Windows: Add helper function to check if the app has a package identity 2022-09-01 20:48:49 +02:00
qfunctions_win_p.h Windows: Add helper function to check if the app has a package identity 2022-09-01 20:48:49 +02:00
qfunctions_winrt_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qiterable.cpp Doc: Format certain operators in text 2022-08-23 20:49:47 +02:00
qiterable.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qiterable_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qjnienvironment.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qjnienvironment.h Add compile-time generation of JNI class names 2022-05-27 22:27:13 +02:00
qjnihelpers.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qjnihelpers_p.h Return specific types for frequently used Java objects 2022-05-17 00:34:06 +02:00
qjniobject.cpp QJniObject: Add template overloads for get/setStaticField 2022-07-12 13:25:04 +02:00
qjniobject.h QJniObject: Add template overloads for get/setStaticField 2022-07-12 13:25:04 +02:00
qjnitypes.h JNI: add generic support for array-types 2022-10-10 20:19:30 +02:00
qmath.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmath.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmath.qdoc Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qmetacontainer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetacontainer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaobject.cpp QMetaObject/Doc: document the variadic invoke{,Method} and newInstance 2022-09-01 21:29:04 -03:00
qmetaobject.h QMetaObject/Doc: document the variadic invoke{,Method} and newInstance 2022-09-01 21:29:04 -03:00
qmetaobject_moc_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaobject_p.h QMetaObject: pass the QMetaTypes in variadic invoke/newInstance 2022-09-01 21:29:04 -03:00
qmetaobjectbuilder.cpp QMetaObject: add revision 11 for Qt 6.5 2022-08-25 03:31:28 -03:00
qmetaobjectbuilder_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetatype.cpp QMetaType: Support custom unary converters with optional<To> return type 2022-09-27 20:59:21 +02:00
qmetatype.h QMetaType: Support custom unary converters with optional<To> return type 2022-09-27 20:59:21 +02:00
qmetatype_p.h QVariant: move the check for std::nullptr_t a bit up in customConstruct 2022-07-27 12:35:50 -07:00
qmimedata.cpp QMimeData: fix the usage of a deprecated function 2022-07-12 20:43:03 +02:00
qmimedata.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qobject.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qobject.h Remove preprocessor conditionals for chrono include 2022-09-16 08:09:05 +02:00
qobject_impl.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qobject_p.h Don't access QObjectPrivate::declarativeData unguarded 2022-08-20 03:55:12 +02:00
qobject_p_p.h Move QObjectPrivate::Connection* structs to a new header 2022-07-07 13:42:59 +05:00
qobjectcleanuphandler.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qobjectcleanuphandler.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qobjectdefs.h Replace qExchange calls with std::exchange 2022-09-28 17:39:21 +00:00
qobjectdefs_impl.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpointer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpointer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpoll.cpp qpoll: disallow file descriptors bigger than FD_SETSIZE 2022-10-10 04:06:37 -07:00
qpoll_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qproperty.cpp Replace qExchange calls with std::exchange 2022-09-28 17:39:21 +00:00
qproperty.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qproperty_p.h QProperty: remove unused overload 2022-09-13 13:29:55 +02:00
qpropertyprivate.h Replace qExchange calls with std::exchange 2022-09-28 17:39:21 +00:00
qsequentialiterable.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsequentialiterable.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsharedmemory.cpp QSharedMemory/doc: update docs to be more modern 2022-10-11 18:36:11 +02:00
qsharedmemory.h QSharedMemory: remove QT_NO_QOBJECT 2022-09-16 17:20:18 -07:00
qsharedmemory_android.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsharedmemory_p.h {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsharedmemory_posix.cpp Use QT_CONFIG feature checks for sharedmemory and systemsemaphores 2022-07-12 22:47:16 +02:00
qsharedmemory_systemv.cpp Use QT_CONFIG feature checks for sharedmemory and systemsemaphores 2022-07-12 22:47:16 +02:00
qsharedmemory_unix.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsharedmemory_win.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsignalmapper.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsignalmapper.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsocketnotifier.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsocketnotifier.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsystemerror.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsystemerror_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsystemsemaphore.cpp QSystemSemaphore: make it a Q_GADGET 2022-10-10 19:51:31 -07:00
qsystemsemaphore.h QSystemSemaphore: make it a Q_GADGET 2022-10-10 19:51:31 -07:00
qsystemsemaphore_android.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsystemsemaphore_p.h {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsystemsemaphore_posix.cpp Use QT_CONFIG feature checks for sharedmemory and systemsemaphores 2022-07-12 22:47:16 +02:00
qsystemsemaphore_systemv.cpp Use QT_CONFIG feature checks for sharedmemory and systemsemaphores 2022-07-12 22:47:16 +02:00
qsystemsemaphore_unix.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qsystemsemaphore_win.cpp {QSharedMemory,QSystemSemaphore}Private: use NSDMI for the members 2022-09-17 15:52:47 -07:00
qt_attribution.json Update various qt_attribution.json files 2018-11-02 13:48:35 +00:00
qtestsupport_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestsupport_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtimer.cpp Move QTimerPrivate to separate header 2022-09-13 09:33:40 +02:00
qtimer.h Remove preprocessor conditionals for chrono include 2022-09-16 08:09:05 +02:00
qtimer_p.h Move QTimerPrivate to separate header 2022-09-13 09:33:40 +02:00
qtimerinfo_unix.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qtimerinfo_unix_p.h Migrate QBasicTimer from int to qint64 2022-08-30 15:46:01 +02:00
qtmetamacros.h QPrivateSignal: disable implicit conversions from initializer_list 2022-10-10 20:19:45 +02:00
qtmochelpers.h qtmochelpers.h: include what you need 2022-10-06 14:26:22 +02:00
qtranslator.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qtranslator.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtranslator_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvariant.cpp QVariant/Doc: expand what toList & toMap conversions may succeed 2022-10-11 09:36:11 -07:00
qvariant.h QVariant: pass the size and alignment to PrivateShared::create() 2022-08-03 19:51:25 -07:00
qvarianthash.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvariantlist.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvariantmap.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwineventnotifier.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwineventnotifier.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwineventnotifier_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwinregistry.cpp QWinRegistry: Add missing include 2022-09-15 20:47:12 +00:00
qwinregistry_p.h Replace qExchange with std::exchange 2022-10-07 18:11:36 +02:00