Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/kwalletd/ktimeout.cpp
Show All 28 Lines | |||||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | KTimeout::~KTimeout() | 31 | KTimeout::~KTimeout() | ||
32 | { | 32 | { | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | void KTimeout::clear() | 35 | void KTimeout::clear() | ||
36 | { | 36 | { | ||
37 | foreach (int timerId, _timers) { | 37 | for (int timerId : qAsConst(_timers)) { | ||
38 | killTimer(timerId); | 38 | killTimer(timerId); | ||
39 | } | 39 | } | ||
40 | _timers.clear(); | 40 | _timers.clear(); | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | void KTimeout::removeTimer(int id) | 43 | void KTimeout::removeTimer(int id) | ||
44 | { | 44 | { | ||
45 | const int timerId = _timers.value(id, 0); | 45 | const int timerId = _timers.value(id, 0); | ||
Show All 35 Lines |