Description: Fix Qt6 FTBFS: QString::arg() with QAtomicInt arguments in webapi plugin
 Qt6's QString::arg() template only accepts integral/floating-point/string
 types; QAtomicInt matches none of them. Call QAtomicInt::load() to obtain
 the int value before passing it to QString::arg() in getStatistics().
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-05

--- 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).arg(m_apiTotalRequestsPerSecond).arg(StatisticsUpdateIntervalSeconds) +
-			QStringLiteral("Framebuffer requests: %1 (%2/s in the past %3 s)\n<br/>").arg(m_framebufferRequestsCounter).arg(m_framebufferRequestsPerSecond).arg(StatisticsUpdateIntervalSeconds) +
-			QStringLiteral("VNC framebuffer updates: %1 (%2/s in the past %3 s)\n<br/>").arg(m_vncFramebufferUpdatesCounter).arg(m_vncFramebufferUpdatesPerSecond).arg(StatisticsUpdateIntervalSeconds) +
+	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) +
 			QStringLiteral("Number of client connections: %1<br/>\n").arg(m_connections.count());
 }
 

