From b52a8d2d61453c9cb19b32af286d9888ad5c41b6 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Mon, 12 Aug 2019 16:43:17 +0200 Subject: [PATCH] added missing const --- slsDetectorSoftware/src/Detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/Detector.cpp b/slsDetectorSoftware/src/Detector.cpp index b4ba194eb..c55e3a98a 100644 --- a/slsDetectorSoftware/src/Detector.cpp +++ b/slsDetectorSoftware/src/Detector.cpp @@ -1163,7 +1163,7 @@ void Detector::setCounterBit(bool value, Positions pos) { Result> Detector::getROI(Positions pos) const { //vector holding module_id for the modules that should be read - std::vector id_vec = [&]() { + const std::vector id_vec = [&]() { if (pos.empty() || (pos.size() == 1 && pos[0] == -1)){ std::vector tmp; for(size_t i=0; i!= pimpl->size(); ++i)