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)