diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-12-12 09:47:12 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-12-14 20:29:45 +0100 |
commit | 0d09b4f6b9cae84b78d59cecab6d6feb993b112a (patch) | |
tree | 00bd7db4d5a7da65fcd65770e446f9f91b17c110 /src/corelib/animation/qpropertyanimation.cpp | |
parent | 1a1735a7cf02d83cef58be41f68cec4a2764e890 (diff) |
Q*Animation: s/QPair/std::pair/
Also port from qMakePair() to just braced initialization and CTAD.
As a drive-by, de-duplicate some code around a lower_bound(), and port
from `typedef` to `using`.
Pick-to: 6.7
Task-number: QTBUG-115841
Change-Id: I3e907ad3bb10b5ca169422ad90d3a65b1b33f926
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/animation/qpropertyanimation.cpp')
-rw-r--r-- | src/corelib/animation/qpropertyanimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp index 3bee809509..d461668dbb 100644 --- a/src/corelib/animation/qpropertyanimation.cpp +++ b/src/corelib/animation/qpropertyanimation.cpp @@ -261,7 +261,7 @@ void QPropertyAnimation::updateState(QAbstractAnimation::State newState, { Q_CONSTINIT static QBasicMutex mutex; auto locker = qt_unique_lock(mutex); - typedef QPair<QObject *, QByteArray> QPropertyAnimationPair; + using QPropertyAnimationPair = std::pair<QObject *, QByteArray>; typedef QHash<QPropertyAnimationPair, QPropertyAnimation*> QPropertyAnimationHash; Q_CONSTINIT static QPropertyAnimationHash hash; |