Description: Fix Qt6 FTBFS: QAtomicInt has no member load()
 Qt 6.10 removed QAtomicInteger::load(); only loadRelaxed(), loadAcquire()
 and the implicit conversion operator remain. The preceding patch
 fix-ftbfs-webapi-qatomicint-arg converted the raw QAtomicInt arguments of
 QString::arg() to .load() calls, which no longer compile with Qt 6.10.2.
 Replace those calls with .loadAcquire(), the Qt 6 equivalent of the old
 Qt 5 load() (acquire semantics), so getStatistics() builds again.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-14

--- veyon-4.9.7+repack1.orig/plugins/webapi/WebApiController.cpp
+++ veyon-4.9.7+repack1/plugins/webapi/WebApiController.cpp
@@ -475,9 +475,9 @@ QString WebApiController::getStatistics(
 {
 	QReadLocker connectionsLocker{&m_connectionsLock};
 
-	return QStringLiteral("Total API requests: %1 (%2/s in the past %3 s)\n<br/>").arg(m_apiTotalRequestsCounter.load()).arg(m_apiTotalRequestsPerSecond.load()).arg(StatisticsUpdateIntervalSeconds) +
-			QStringLiteral("Framebuffer requests: %1 (%2/s in the past %3 s)\n<br/>").arg(m_framebufferRequestsCounter.load()).arg(m_framebufferRequestsPerSecond.load()).arg(StatisticsUpdateIntervalSeconds) +
-			QStringLiteral("VNC framebuffer updates: %1 (%2/s in the past %3 s)\n<br/>").arg(m_vncFramebufferUpdatesCounter.load()).arg(m_vncFramebufferUpdatesPerSecond.load()).arg(StatisticsUpdateIntervalSeconds) +
+	return QStringLiteral("Total API requests: %1 (%2/s in the past %3 s)\n<br/>").arg(m_apiTotalRequestsCounter.loadAcquire()).arg(m_apiTotalRequestsPerSecond.loadAcquire()).arg(StatisticsUpdateIntervalSeconds) +
+			QStringLiteral("Framebuffer requests: %1 (%2/s in the past %3 s)\n<br/>").arg(m_framebufferRequestsCounter.loadAcquire()).arg(m_framebufferRequestsPerSecond.loadAcquire()).arg(StatisticsUpdateIntervalSeconds) +
+			QStringLiteral("VNC framebuffer updates: %1 (%2/s in the past %3 s)\n<br/>").arg(m_vncFramebufferUpdatesCounter.loadAcquire()).arg(m_vncFramebufferUpdatesPerSecond.loadAcquire()).arg(StatisticsUpdateIntervalSeconds) +
 			QStringLiteral("Number of client connections: %1<br/>\n").arg(m_connections.count());
 }
