diff options
author | Olli Werwolff <qt-info@nokia.com> | 2011-04-19 14:27:34 +0200 |
---|---|---|
committer | Olli Werwolff <qt-info@nokia.com> | 2011-04-19 14:27:34 +0200 |
commit | ce1da2bb5e6f7142af888e77c9e15c99a7879083 (patch) | |
tree | 7bd335635206ff2b579dbf025fa49cc694f0cc27 | |
parent | 9fe289a0a968fe7ead90e5d01abac9e2689123ac (diff) |
use qDeleteAll in removeValuePoints
-rw-r--r-- | src/other/inputfilter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/other/inputfilter.cpp b/src/other/inputfilter.cpp index 7343541..ebec8aa 100644 --- a/src/other/inputfilter.cpp +++ b/src/other/inputfilter.cpp @@ -115,9 +115,6 @@ QtSimulatorPrivate::TouchEventData InputFilter::createTouchEventFromMouseEvent(W void InputFilter::removeValuePoints() { - while (!mValuePoints.isEmpty()) { - MouseIndicator *valuePoint = mValuePoints.takeFirst(); - delete valuePoint; - valuePoint = 0; - } + qDeleteAll(mValuePoints); + mValuePoints.clear(); } |