diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-10 14:47:41 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-10 14:48:07 (GMT) |
commit | 41537bb8ea6f6174690d244a1cc07678f4bf4229 (patch) | |
tree | 01924383a82f3b49da9c433a709bba46367a9f4c /src/corelib/statemachine/qhistorystate.cpp | |
parent | 0ef0b1acb84d216bddd31424849aba82d4ef51f9 (diff) | |
download | Qt-41537bb8ea6f6174690d244a1cc07678f4bf4229.zip Qt-41537bb8ea6f6174690d244a1cc07678f4bf4229.tar.gz Qt-41537bb8ea6f6174690d244a1cc07678f4bf4229.tar.bz2 |
fix issues reported by Coverity
Diffstat (limited to 'src/corelib/statemachine/qhistorystate.cpp')
-rw-r--r-- | src/corelib/statemachine/qhistorystate.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/statemachine/qhistorystate.cpp b/src/corelib/statemachine/qhistorystate.cpp index e5ca837..d21eee9 100644 --- a/src/corelib/statemachine/qhistorystate.cpp +++ b/src/corelib/statemachine/qhistorystate.cpp @@ -120,7 +120,7 @@ QT_BEGIN_NAMESPACE */ QHistoryStatePrivate::QHistoryStatePrivate() - : defaultState(0) + : defaultState(0), historyType(QHistoryState::ShallowHistory) { } @@ -135,8 +135,6 @@ QHistoryStatePrivate *QHistoryStatePrivate::get(QHistoryState *q) QHistoryState::QHistoryState(QState *parent) : QAbstractState(*new QHistoryStatePrivate, parent) { - Q_D(QHistoryState); - d->historyType = ShallowHistory; } /*! Constructs a new history state of the given \a type, with the given \a |