diff --git a/wsd/Admin.cpp b/wsd/Admin.cpp index bc5f48074..53168ebf6 100644 --- a/wsd/Admin.cpp +++ b/wsd/Admin.cpp @@ -1055,7 +1055,7 @@ std::vector> Admin::getMonitorList() void Admin::startMonitors() { bool haveMonitors = false; - for (auto monitor : getMonitorList()) + for (const auto& monitor : getMonitorList()) { addCallback( [=]