Unverified Commit 0bc884fc authored by DannyHindson's avatar DannyHindson Committed by GitHub
Browse files

Merge pull request #32531 from DavidFair/cppcheck_cache

Cppcheck cache
parents 3ee31c71 30f7d72e
......@@ -111,7 +111,7 @@ void RotationSurface::createUnwrappedDetectors() {
auto detectors = retrieveSurfaceDetectors();
bool exceptionThrown = false;
// For each detector in the order of actors
// cppcheck-suppress syntaxError
PRAGMA_OMP(parallel for)
for (int ii = 0; ii < int(detectors.size()); ++ii) {
if (!exceptionThrown) {
......
......@@ -68,7 +68,7 @@ void SignalRange::findFullRange(const Mantid::API::IMDWorkspace &workspace,
*/
QwtDoubleInterval SignalRange::getRange(const std::vector<std::unique_ptr<Mantid::API::IMDIterator>> &iterators) {
std::vector<QwtDoubleInterval> intervals(iterators.size());
// cppcheck-suppress syntaxError
PRAGMA_OMP( parallel for schedule(dynamic, 1))
for (int i = 0; i < int(iterators.size()); i++) {
auto it = iterators[i].get();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment