OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710ffa4
)
optimize assert in QGestureManager::deliverEvents()
author
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 17:07:47 +0000
(17:07 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 17:07:47 +0000
(17:07 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qgesturemanager.cpp
patch
|
blob
|
history
diff --git
a/src/gui/kernel/qgesturemanager.cpp
b/src/gui/kernel/qgesturemanager.cpp
index
8dd866f
..
bfa1346
100644
(file)
--- a/
src/gui/kernel/qgesturemanager.cpp
+++ b/
src/gui/kernel/qgesturemanager.cpp
@@
-587,9
+587,7
@@
void QGestureManager::deliverEvents(const QSet<QGesture *> &gestures,
m_gestureTargets.insert(gesture, target);
}
- Qt::GestureType gestureType = gesture->gestureType();
- Q_ASSERT(gestureType != Qt::CustomGesture);
- Q_UNUSED(gestureType);
+ Q_ASSERT(gesture->gestureType() != Qt::CustomGesture);
if (target) {
if (gesture->state() == Qt::GestureStarted) {