summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-01-21 11:32:13 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-01-21 16:38:24 +0100
commite5029063057c38297f188ccfefef7b1bcd781a76 (patch)
tree15d9f13149c6af3078adc838ea87cf315461f098 /src/corelib/thread
parent5d80d24d3c1a58c7e617e7b671e3040039cde684 (diff)
Add a note for making ResultStoreBase's internal members private
There's no class inheriting from ResultStoreBase (and likely won't be), so the destructor was marked to be made non-virtual in Qt 7. For the same reason, the internal members don't need to be protected, and the class shouldn't have "Base" in its name. Add a note about it. Task-number: QTBUG-99883 Change-Id: I00d7a96d99d2c326d29bd421235a15d68b4d4e5c Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qresultstore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/thread/qresultstore.h b/src/corelib/thread/qresultstore.h
index a2a14f3de2..758331a9f0 100644
--- a/src/corelib/thread/qresultstore.h
+++ b/src/corelib/thread/qresultstore.h
@@ -136,7 +136,8 @@ public:
ResultIteratorBase resultAt(int index) const;
bool contains(int index) const;
int count() const;
- // ### Qt 7: 'virtual' isn't required, can be removed
+ // ### Qt 7: 'virtual' isn't required, can be removed, along with renaming
+ // the class to ResultStore and changing the members below to be private.
virtual ~ResultStoreBase();
protected: