fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+6
-5
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "srm_data_plugin.h"
|
||||
#include <utility>
|
||||
|
||||
#include <DDS/Core/core_dtc.h>
|
||||
#include <SituationReplayManagement/srm_ftc.h>
|
||||
@@ -51,7 +52,7 @@ public:
|
||||
{
|
||||
// next 4 lines: comment please
|
||||
m_references += fi;
|
||||
for (const auto &info : qAsConst(m_replayPartitions))
|
||||
for (const auto &info : std::as_const(m_replayPartitions))
|
||||
{
|
||||
fi->write(info);
|
||||
}
|
||||
@@ -72,7 +73,7 @@ public:
|
||||
void removeSession(ForeignInterfaceImpl *fi, bool wait = true) noexcept(false)
|
||||
{
|
||||
m_references -= fi;
|
||||
for (const auto &info : qAsConst(m_replayPartitions))
|
||||
for (const auto &info : std::as_const(m_replayPartitions))
|
||||
fi->remove(info);
|
||||
|
||||
replayPartitionRemoveRequest(fi, 0, 0, 0, wait);
|
||||
@@ -262,7 +263,7 @@ public:
|
||||
}
|
||||
|
||||
const auto &rp = it.value();
|
||||
for (auto ptr : qAsConst(m_references))
|
||||
for (auto ptr : std::as_const(m_references))
|
||||
ptr->remove(rp);
|
||||
|
||||
proc->deleteLater();
|
||||
@@ -281,7 +282,7 @@ public:
|
||||
}
|
||||
|
||||
const ReplayPartitionEx &rp = it.value();
|
||||
for (ForeignInterfaceImpl* ptr : qAsConst(m_references))
|
||||
for (ForeignInterfaceImpl* ptr : std::as_const(m_references))
|
||||
ptr->write(rp);
|
||||
}
|
||||
|
||||
@@ -353,7 +354,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
for (auto *ptr : qAsConst(m_references))
|
||||
for (auto *ptr : std::as_const(m_references))
|
||||
ptr->remove(rp);
|
||||
|
||||
it = m_replayPartitions.erase(it);
|
||||
|
||||
Reference in new issue
Block a user