fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+5
-4
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "cnr_tvc_profile_handler.h"
|
||||
#include <utility>
|
||||
#include "cnr_handler.h"
|
||||
#include "tvc_handler.h"
|
||||
#include <AudioVideoManagement/avm_dts.h>
|
||||
@@ -49,7 +50,7 @@ CnrTvcProfile toDds(const Database::AvmCnrTvcProfile &circuitContainerDb, T circ
|
||||
|
||||
CnrTvcProfile circuitContainerDds(circuitContainerDb.id, circuitContainerDb.operatorId, circuitContainerDb.exerciseId, {});
|
||||
circuitContainerDds.data.reserve(circuitsDb.size());
|
||||
for (const auto ¤tCircuitDb : qAsConst(circuitsDb))
|
||||
for (const auto ¤tCircuitDb : std::as_const(circuitsDb))
|
||||
circuitContainerDds.data.push_back(toDds(currentCircuitDb));
|
||||
return circuitContainerDds;
|
||||
}
|
||||
@@ -148,7 +149,7 @@ bool CnrTvcProfileHandler::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto ¤tCircuitContainer: qAsConst(circuitContainersDb))
|
||||
for (const auto ¤tCircuitContainer: std::as_const(circuitContainersDb))
|
||||
status &= collectAndPublish(currentCircuitContainer);
|
||||
|
||||
return status;
|
||||
@@ -570,7 +571,7 @@ void CnrTvcProfileHandler::onConfigChanged(int32_t configId, RadioSystem type)
|
||||
|
||||
// Find all CnrTvcProfiles where this config is referenced and reload those.
|
||||
// Hint: reloading might modify m_cache. Thus the reloading is done in a separate loop.
|
||||
for (const auto &profile : qAsConst(m_cache))
|
||||
for (const auto &profile : std::as_const(m_cache))
|
||||
for (const auto &data : profile.data)
|
||||
if (data.radioSystemId == type && data.radioCircuitId == configId)
|
||||
{
|
||||
@@ -578,7 +579,7 @@ void CnrTvcProfileHandler::onConfigChanged(int32_t configId, RadioSystem type)
|
||||
break;
|
||||
}
|
||||
|
||||
for (const auto &profile : qAsConst(toBeReloaded))
|
||||
for (const auto &profile : std::as_const(toBeReloaded))
|
||||
{
|
||||
Database::AvmCnrTvcProfile profileDb = toDb(profile);
|
||||
const bool isReload = true;
|
||||
|
||||
Reference in new issue
Block a user