fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -5,6 +5,7 @@
|
||||
* $Author$
|
||||
*/
|
||||
#include "db_writer.h"
|
||||
#include <utility>
|
||||
|
||||
#include "db_writer_snapshot.h"
|
||||
#include "rec_db.h"
|
||||
@@ -119,7 +120,7 @@ void DbWriter::ddsTopicsToDatabase()
|
||||
QHash<QString, qint64> minRecordSampleTimes;
|
||||
|
||||
// for each plugin
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
|
||||
{
|
||||
if (!recPlugin->ddsTopicsToDatabase(*m_query, minRecordSampleTimes))
|
||||
{
|
||||
|
||||
+4
-3
@@ -5,6 +5,7 @@
|
||||
* $Author$
|
||||
*/
|
||||
#include "db_writer_snapshot.h"
|
||||
#include <utility>
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
@@ -163,7 +164,7 @@ void DbWriterSnapshot::initSnapshot()
|
||||
|
||||
// Recording already initialised => read last arrays for each plugin/topic to
|
||||
// get a hint where to start with indexing each topic
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
|
||||
{
|
||||
// get all record topics and check if there's a index for them
|
||||
// if not -> check if there's a sample for this topic where we've to start indexing
|
||||
@@ -227,7 +228,7 @@ void DbWriterSnapshot::writeSnapshotData()
|
||||
|
||||
// shortcut to avoid DBTransaction and loop over all plugins
|
||||
qint64 startTime = std::numeric_limits<qint64>::max();
|
||||
for(const qint64 st : qAsConst(minRecSampleTimes))
|
||||
for(const qint64 st : std::as_const(minRecSampleTimes))
|
||||
startTime = std::min(startTime, st);
|
||||
INFO_LOG(m_logger) << "writeSnapshotData - lastSnapshotTimeToGenerateNow: " << lastSnapshotTimeToGenerateNow
|
||||
<< ", minRecTime is " << startTime;
|
||||
@@ -251,7 +252,7 @@ void DbWriterSnapshot::writeSnapshotData()
|
||||
<< " lastSnapshotTimeToGenerateNow: " << lastSnapshotTimeToGenerateNow << " - BEGIN";
|
||||
DBTransaction trans(QSqlDatabase::database(dbConnectionName()));
|
||||
NSqlQuery recSnapshotQuery(QSqlDatabase::database(dbConnectionName()));
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
|
||||
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
|
||||
writeSnapshotDataPlugin(lastSnapshotTimeToGenerateNow, recSnapshotQuery, recPlugin, minRecSampleTimes);
|
||||
|
||||
trans.commit();
|
||||
|
||||
Reference in new issue
Block a user