cid#321976 AUTO_CAUSES_COPY

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I2207cc530e1773f29cf540ea2ff9c6f44c4c237b
This commit is contained in:
Caolán McNamara 2023-08-09 13:52:02 +01:00 committed by Miklos Vajna
parent 5dcce1965e
commit 1cd88f217e

View file

@ -1055,7 +1055,7 @@ std::vector<std::pair<std::string, int>> Admin::getMonitorList()
void Admin::startMonitors()
{
bool haveMonitors = false;
for (auto monitor : getMonitorList())
for (const auto& monitor : getMonitorList())
{
addCallback(
[=]