aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/common
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-11-18 14:19:58 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-11-22 12:05:57 +0100
commitb04740dc69a00870d9e4bc4e17ebfa5a06c7dba9 (patch)
treeef8a1d65a5edea6f4e6d67dd75101bdfc97a64e4 /src/qml/common
parenta8d9cd56026deb6948eeb3e0f9d01a7a7320e6c9 (diff)
Clean up QQmlJS::MemoryPool
There is no reason to derive it from QSharedData, and it shouldn't be copied or moved. Change-Id: If5638b2817295daf2b96a542b70f7d9cabf160d3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/common')
-rw-r--r--src/qml/common/qqmljsmemorypool_p.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/qml/common/qqmljsmemorypool_p.h b/src/qml/common/qqmljsmemorypool_p.h
index dcf3fafb67..e8d49b40fd 100644
--- a/src/qml/common/qqmljsmemorypool_p.h
+++ b/src/qml/common/qqmljsmemorypool_p.h
@@ -52,10 +52,10 @@
//
#include <QtCore/qglobal.h>
-#include <QtCore/qshareddata.h>
-#include <QtCore/qdebug.h>
+#include <QtCore/qstring.h>
+#include <QtCore/qvector.h>
-#include <cstring>
+#include <cstdlib>
QT_BEGIN_NAMESPACE
@@ -63,14 +63,12 @@ namespace QQmlJS {
class Managed;
-class MemoryPool : public QSharedData
+class MemoryPool
{
- MemoryPool(const MemoryPool &other);
- void operator =(const MemoryPool &other);
+ Q_DISABLE_COPY_MOVE(MemoryPool);
public:
- MemoryPool() {}
-
+ MemoryPool() = default;
~MemoryPool()
{
if (_blocks) {