summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-09-21 18:17:13 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-10-03 09:01:48 +0000
commit9ac2134767af0d35711f3f4df82216f27d83b8b0 (patch)
treefb6c921d77e767818b2a59b2727b3f7494f8e444
parentd6f4bf986c1363e4d553e0d5a624d371fcb87364 (diff)
Initialize callback to nullptr in MappingData struct
Otherwise we inadvertently send callbacks even when not requested. Change-Id: I398c930740133f39982d6b071443fbeee8b029a9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/animation/backend/animationutils_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animation/backend/animationutils_p.h b/src/animation/backend/animationutils_p.h
index 86c9fdd52..4bd3ee64b 100644
--- a/src/animation/backend/animationutils_p.h
+++ b/src/animation/backend/animationutils_p.h
@@ -83,7 +83,7 @@ struct MappingData
int jointIndex = -1;
JointTransformComponent jointTransformComponent = NoTransformComponent;
const char *propertyName;
- QAnimationCallback *callback;
+ QAnimationCallback *callback = nullptr;
QAnimationCallback::Flags callbackFlags;
int type;
ComponentIndices channelIndices;