summaryrefslogtreecommitdiffstats
path: root/src/corelib/time
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2021-08-09 12:27:50 +0200
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2021-08-10 14:21:58 +0200
commitf636a1efa5a103b63db34c97ff664e6ac8ee0502 (patch)
tree29bd5e796209f408d161610e239f4e3862293daa /src/corelib/time
parent62b5d88b0d62eaba2e94c0dcf1dc3d0be719ee6b (diff)
QCalendarRegistry: Explicitly disable moving and copying
Add Q_DISABLE_COPY_MOVE to QCalendarRegistry to silence the following warning produced by QtStaticAnalysisBot: class 'QCalendarRegistry' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator QCalendarRegistry is a singleton so it does not need to be moved or copied. The warning was introduced by d0ae1ef33a6eed02acde7304298794f4f0119e16. Task-number: QTBUG-93004 Pick-to: 6.2 Change-Id: I5e018346415b9d0a1ebc3bbde2ab7c3ad5e6d9d0 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/time')
-rw-r--r--src/corelib/time/qcalendar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/time/qcalendar.cpp b/src/corelib/time/qcalendar.cpp
index 8f545515fe..4631c9a94c 100644
--- a/src/corelib/time/qcalendar.cpp
+++ b/src/corelib/time/qcalendar.cpp
@@ -88,6 +88,8 @@ namespace QtPrivate {
*/
class QCalendarRegistry
{
+ Q_DISABLE_COPY_MOVE(QCalendarRegistry); // This is a singleton.
+
/*
Lock protecting the registry from concurrent modification.
*/