diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2015-06-18 12:31:09 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-07-08 12:05:34 +0000 |
commit | 1ab5f763f0006675e412f30b7af2986a0d1ab8c5 (patch) | |
tree | 3cf5b357aa72801c04e3d09ee32c69ca51ee8120 /src/corelib/statemachine/qhistorystate_p.h | |
parent | 641de5ab50ebe61639535b64bae8298082d82ad8 (diff) |
StateMachine: Move Q...Private::get to _p.h file.
Micro optimization, because it's called a lot.
Change-Id: I50f775b39393f1f450e09ae9dc59a77d584f3c10
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/corelib/statemachine/qhistorystate_p.h')
-rw-r--r-- | src/corelib/statemachine/qhistorystate_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qhistorystate_p.h b/src/corelib/statemachine/qhistorystate_p.h index b5c353fdff..57149e3f86 100644 --- a/src/corelib/statemachine/qhistorystate_p.h +++ b/src/corelib/statemachine/qhistorystate_p.h @@ -59,7 +59,8 @@ class QHistoryStatePrivate : public QAbstractStatePrivate public: QHistoryStatePrivate(); - static QHistoryStatePrivate *get(QHistoryState *q); + static QHistoryStatePrivate *get(QHistoryState *q) + { return q->d_func(); } QAbstractState *defaultState; QHistoryState::HistoryType historyType; |