Changeset View
Changeset View
Standalone View
Standalone View
src/core/connection.cpp
Show All 29 Lines | |||||
30 | using namespace KIO; | 30 | using namespace KIO; | ||
31 | 31 | | |||
32 | void ConnectionPrivate::dequeue() | 32 | void ConnectionPrivate::dequeue() | ||
33 | { | 33 | { | ||
34 | if (!backend || suspended) { | 34 | if (!backend || suspended) { | ||
35 | return; | 35 | return; | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | foreach (const Task &task, outgoingTasks) { | 38 | for (const Task &task : qAsConst(outgoingTasks)) { | ||
39 | q->sendnow(task.cmd, task.data); | 39 | q->sendnow(task.cmd, task.data); | ||
40 | } | 40 | } | ||
41 | outgoingTasks.clear(); | 41 | outgoingTasks.clear(); | ||
42 | 42 | | |||
43 | if (!incomingTasks.isEmpty()) { | 43 | if (!incomingTasks.isEmpty()) { | ||
44 | emit q->readyRead(); | 44 | emit q->readyRead(); | ||
45 | } | 45 | } | ||
46 | } | 46 | } | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |