Use some more SQL containers instead of their Qt equivalents

This commit is contained in:
Martin Kleusberg
2019-04-26 14:57:44 +02:00
parent f59a2453a2
commit 15c23bb0d3
36 changed files with 974 additions and 962 deletions
+4 -4
View File
@@ -7,10 +7,10 @@
#include <memory>
#include <future>
#include <functional>
#include <vector>
#include <QThread>
#include <QString>
#include <QStringList>
#include <QMutex>
#include "sqlite.h"
@@ -23,13 +23,13 @@ class RowLoader : public QThread
void run() override;
public:
typedef RowCache<QVector<QByteArray>> Cache;
typedef RowCache<std::vector<QByteArray>> Cache;
/// set up worker thread to handle row loading
explicit RowLoader (
std::function<std::shared_ptr<sqlite3>(void)> db_getter,
std::function<void(QString)> statement_logger,
QStringList & headers,
std::vector<std::string> & headers,
QMutex & cache_mutex,
Cache & cache_data
);
@@ -69,7 +69,7 @@ signals:
private:
const std::function<std::shared_ptr<sqlite3>()> db_getter;
const std::function<void(QString)> statement_logger;
QStringList & headers;
std::vector<std::string> & headers;
QMutex & cache_mutex;
Cache & cache_data;