summaryrefslogtreecommitdiffstats
path: root/src/corelib/time/qcalendar.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-01-26 15:13:02 +0100
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-01-31 10:46:49 +0100
commite63278bb38fc518e1dd7db8a86f689abb8a11b20 (patch)
tree278da5213de921ad0151357decac7267a88d5b18 /src/corelib/time/qcalendar.cpp
parent38b726830c7d946289fe812b7aba16c10225d255 (diff)
QtCore/QCalendarRegistry: Move helper CaseInsensitiveAnyStringViewLessThan out of anonymous namespace
It causes a warning in CMake Unity (Jumbo) builds: src/corelib/time/qcalendar.cpp:46: warning: QtPrivate::QCalendarRegistry has a field QtPrivate::QCalendarRegistry::byName whose type uses the anonymous namespace [-Wsubobject-linkage] Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ie9598c3e87dd835b06cafe5392766bddc258b5ec Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qcalendar.cpp')
-rw-r--r--src/corelib/time/qcalendar.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/corelib/time/qcalendar.cpp b/src/corelib/time/qcalendar.cpp
index a6801fe725..5eaecedbbd 100644
--- a/src/corelib/time/qcalendar.cpp
+++ b/src/corelib/time/qcalendar.cpp
@@ -25,9 +25,8 @@
QT_BEGIN_NAMESPACE
-namespace {
-
-struct CaseInsensitiveAnyStringViewLessThan {
+struct QCalendarRegistryCaseInsensitiveAnyStringViewLessThan
+{
struct is_transparent {};
bool operator()(QAnyStringView lhs, QAnyStringView rhs) const
{
@@ -35,8 +34,6 @@ struct CaseInsensitiveAnyStringViewLessThan {
}
};
-} // unnamed namespace
-
namespace QtPrivate {
/*
@@ -70,7 +67,7 @@ class QCalendarRegistry
*/
QFlatMap<
QString, QCalendarBackend *,
- CaseInsensitiveAnyStringViewLessThan,
+ QCalendarRegistryCaseInsensitiveAnyStringViewLessThan,
QStringList,
std::vector<QCalendarBackend *>
> byName;