summaryrefslogtreecommitdiffstats
path: root/src/core/qscenechange.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-07-30 16:13:51 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-08-14 15:18:04 +0200
commit0fddeff6bc3f1f8f15f7bbf0a7c43abfb340ccfd (patch)
treef5123dc490d46d4f116c87059554a95defb502e9 /src/core/qscenechange.cpp
parentfe6f56f22c2db5e06791a7a79fbbd2dd2ff1f8d9 (diff)
QScenePropertyChange use QFrameAllocator
The operator new and delete were overloaded to allocate memory by using a QFrameAllocator. This allow to reuse memory over time and reduce the cost of using the new operator to allocate scenepropertychange which can be quite important for a frame. Change-Id: I33e156f35bcc3c486521d70d5b09c7dd3df85fec Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/qscenechange.cpp')
-rw-r--r--src/core/qscenechange.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/qscenechange.cpp b/src/core/qscenechange.cpp
index f0eeefd49..9a795f237 100644
--- a/src/core/qscenechange.cpp
+++ b/src/core/qscenechange.cpp
@@ -52,6 +52,10 @@ QSceneChangePrivate::QSceneChangePrivate(QSceneChange *qq)
{
}
+QSceneChangePrivate::~QSceneChangePrivate()
+{
+}
+
QSceneChange::QSceneChange(ChangeFlag type, QObservableInterface *observable, QSceneChange::Priority priority)
: d_ptr(new QSceneChangePrivate(this))
{