core: Replace QList by std::vector in the storage API
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 30 Aug 2019 19:36:09 +0000 (21:36 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 30 Aug 2019 22:34:29 +0000 (00:34 +0200)
commit6e3574a163f07c28d44276318f2d9f92e169f491
treeca369874d72087a37110878122b5ace8f9739319
parent8961f348947fc55cc4bc769563684af3f2ea7ccc
core: Replace QList by std::vector in the storage API

QList is inefficient and deprecated; also Qt containers have
issues with ranged-for and STL algorithms. Use std::vector instead in
the storage API and fix affected code.

Modernize some affected bits by replacing weird loops with STL
algorithms.
12 files changed:
src/core/abstractsqlstorage.cpp
src/core/abstractsqlstorage.h
src/core/core.h
src/core/corebacklogmanager.cpp
src/core/corebuffersyncer.cpp
src/core/coresession.cpp
src/core/coresession.h
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h
src/core/sqlitestorage.cpp
src/core/sqlitestorage.h
src/core/storage.h