Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -7,6 +7,7 @@
*/
#include "object_notification.h"
#include <utility>
#include "dds_handler.h"
#include <ngldb/dbtransaction.h>
@@ -96,7 +97,7 @@ QString ObjectNotification::contentArgsToJson()
int i = 1;
QJsonArray jsonArray;
for (const std::string& arg : qAsConst(m_dataNotificationObject.contentArgs()))
for (const std::string& arg : std::as_const(m_dataNotificationObject.contentArgs()))
{
DEBUG_LOG(m_logger) << ".arg() ersetzt immer den kleinsten freien Platzhalter"
<< ", arg=" << arg;
@@ -138,7 +139,7 @@ std::vector<std::string> ObjectNotification::jsonToContentArgs(const QString &js
{
// 3. Für schnellen Zugriff nach ID indizieren
QHash<int, QJsonObject> sucheMap;
for (const QJsonValue &wert : qAsConst(jsonArray))
for (const QJsonValue &wert : std::as_const(jsonArray))
{
QJsonObject obj = wert.toObject();
int id = obj[CONTENT_ID].toInt();
@@ -168,7 +169,7 @@ Core::FunctionReplyObject ObjectNotification::readReceipt(const ReadReceipt &dat
Database::NomAddress dbDataAddr;
for (const Address &recipientAddr : qAsConst(m_dataNotificationObject.recipientIds()))
for (const Address &recipientAddr : std::as_const(m_dataNotificationObject.recipientIds()))
{
if (data.operatorId() > 0 && recipientAddr.addressType() == AddressType_def::Operator && recipientAddr.addressId() != data.operatorId())
continue;
@@ -223,7 +224,7 @@ Core::FunctionReplyObject ObjectNotification::readReceipt(const ReadReceipt &dat
m_dataNotificationObject = toDdsData(dbDataNotification);
m_dataNotificationObject.sender(sender);
for (const Address &addr : qAsConst(recipients))
for (const Address &addr : std::as_const(recipients))
{
if (addr.id() == dbDataAddr.id)
m_dataNotificationObject.recipientIds().push_back(toDdsData(dbDataAddr));
@@ -247,7 +248,7 @@ Core::FunctionReplyObject ObjectNotification::deleteMessage(const DeleteMessage
Database::NomAddress dbDataAddr;
for (const Address &recipientAddr : qAsConst(m_dataNotificationObject.recipientIds()))
for (const Address &recipientAddr : std::as_const(m_dataNotificationObject.recipientIds()))
{
DEBUG_LOG(m_logger) << "recipientAddr="
<< ", id: " << recipientAddr.id() << ", addressId: " << recipientAddr.addressId() << ", isDeleted: " << recipientAddr.isDeleted();
@@ -282,7 +283,7 @@ Core::FunctionReplyObject ObjectNotification::deleteMessage(const DeleteMessage
m_dataNotificationObject = toDdsData(dbDataNotification);
m_dataNotificationObject.sender(sender);
for (const Address &addr : qAsConst(recipients))
for (const Address &addr : std::as_const(recipients))
{
DEBUG_LOG(m_logger) << "addr="
<< ", id: " << addr.id() << ", addressId: " << addr.addressId() << ", isDeleted: " << addr.isDeleted();