diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-09-25 11:15:24 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-09-25 11:16:11 (GMT) |
commit | 8a993264ca8bd6273f1d5bb4288d64592d07760f (patch) | |
tree | 2839ded5ae946485e6db94d45dd9ddf6461dfc53 /src/corelib/statemachine/qstate.cpp | |
parent | 0fa201d84468d82bec4268971eba865c50606e5c (diff) | |
download | Qt-8a993264ca8bd6273f1d5bb4288d64592d07760f.zip Qt-8a993264ca8bd6273f1d5bb4288d64592d07760f.tar.gz Qt-8a993264ca8bd6273f1d5bb4288d64592d07760f.tar.bz2 |
Replacing QPointer usage with QWeakPointer in statemachine
Reviewed-by: thierry
Diffstat (limited to 'src/corelib/statemachine/qstate.cpp')
-rw-r--r-- | src/corelib/statemachine/qstate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp index 70026b8..a6e4a57 100644 --- a/src/corelib/statemachine/qstate.cpp +++ b/src/corelib/statemachine/qstate.cpp @@ -291,9 +291,9 @@ QAbstractTransition *QState::addTransition(QAbstractTransition *transition) } transition->setParent(this); - const QList<QPointer<QAbstractState> > &targets = QAbstractTransitionPrivate::get(transition)->targetStates; + const QList<QWeakPointer<QAbstractState> > &targets = QAbstractTransitionPrivate::get(transition)->targetStates; for (int i = 0; i < targets.size(); ++i) { - QAbstractState *t = targets.at(i); + QAbstractState *t = targets.at(i).data(); if (!t) { qWarning("QState::addTransition: cannot add transition to null state"); return 0; |