diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-07 15:44:13 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-07-07 21:20:04 +0200 |
commit | 652459afde5d1ed350f198f212d19b067ce5c1a3 (patch) | |
tree | 0d4b93a884f8e4201c7c0d2f89cb1baee91db8aa /src/corelib/kernel/qproperty.h | |
parent | 086ca457b524d826af5fc5e184bd8f649c431c21 (diff) |
Improve performance of property binding evaluation
Improves performance of binding evaluation by ~20% for
simple C++ bindings by simplifying and inlining the code
that clears the array of property observers.
Change-Id: I829ac1895f1673367d737944d950360015a5b435
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty.h')
-rw-r--r-- | src/corelib/kernel/qproperty.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index 4a323fe8fe..994eb24cea 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -607,7 +607,7 @@ public: ObserverNotifiesAlias, }; - QPropertyObserver(); + QPropertyObserver() = default; QPropertyObserver(QPropertyObserver &&other); QPropertyObserver &operator=(QPropertyObserver &&other); ~QPropertyObserver(); |