Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/editor/modificationrevisionset.cpp
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Line(s) | 248 | { | |||
---|---|---|---|---|---|
252 | Utils::Set::Iterator it = set.iterator(); | 252 | Utils::Set::Iterator it = set.iterator(); | ||
253 | bool first = true; | 253 | bool first = true; | ||
254 | while(it) { | 254 | while(it) { | ||
255 | if(!first) | 255 | if(!first) | ||
256 | ret += QLatin1String(", "); | 256 | ret += QLatin1String(", "); | ||
257 | first = false; | 257 | first = false; | ||
258 | 258 | | |||
259 | const FileModificationPair* data = fileModificationPairRepository().itemFromIndex(*it); | 259 | const FileModificationPair* data = fileModificationPairRepository().itemFromIndex(*it); | ||
260 | ret += data->file.str() + ':' + data->revision.toString(); | 260 | ret += data->file.str() + QLatin1Char(':') + data->revision.toString(); | ||
261 | ++it; | 261 | ++it; | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | ret += ']'; | 264 | ret += QLatin1Char(']'); | ||
265 | return ret; | 265 | return ret; | ||
266 | } | 266 | } | ||
267 | 267 | | |||
268 | bool ModificationRevisionSet::needsUpdate() const { | 268 | bool ModificationRevisionSet::needsUpdate() const { | ||
269 | QMutexLocker lock(&modificationRevisionSetMutex); | 269 | QMutexLocker lock(&modificationRevisionSetMutex); | ||
270 | 270 | | |||
271 | #ifdef DEBUG_NEEDSUPDATE | 271 | #ifdef DEBUG_NEEDSUPDATE | ||
272 | Utils::Set set(m_index, &FileModificationSetRepositoryRepresenter::repository()); | 272 | Utils::Set set(m_index, &FileModificationSetRepositoryRepresenter::repository()); | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |