Changeset View
Changeset View
Standalone View
Standalone View
src/kgamepropertyarray.h
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Line(s) | 267 | { | |||
---|---|---|---|---|---|
274 | { | 274 | { | ||
275 | emitSignal(); | 275 | emitSignal(); | ||
276 | } | 276 | } | ||
277 | break; | 277 | break; | ||
278 | } | 278 | } | ||
279 | case CmdSort: | 279 | case CmdSort: | ||
280 | { | 280 | { | ||
281 | //qCDebug(KFOURINLINE_LOG) << "CmdSort:id="<<id(); | 281 | //qCDebug(KFOURINLINE_LOG) << "CmdSort:id="<<id(); | ||
282 | qSort( *this ); | 282 | std::sort( this->begin(), this->end() ); | ||
ognarb: std::sort( this->begin(), this->end() ); | |||||
could also just be begin() and end(), no this-> needed, but no biggie i guess aacid: could also just be begin() and end(), no this-> needed, but no biggie i guess | |||||
283 | break; | 283 | break; | ||
284 | } | 284 | } | ||
285 | default: | 285 | default: | ||
286 | qCCritical(KFOURINLINE_LOG) << "Error in KPropertyArray::command: Unknown command" << msgid; | 286 | qCCritical(KFOURINLINE_LOG) << "Error in KPropertyArray::command: Unknown command" << msgid; | ||
287 | break; | 287 | break; | ||
288 | } | 288 | } | ||
289 | } | 289 | } | ||
290 | protected: | 290 | protected: | ||
Show All 14 Lines |
std::sort( this->begin(), this->end() );