From 03fd434b44c7fb9a3ff57031235aeda9a8391c81 Mon Sep 17 00:00:00 2001
From: Joachim Wuttke <j.wuttke@fz-juelich.de>
Date: Wed, 29 Nov 2023 11:50:06 +0100
Subject: [PATCH] recommended by clang-tidy

---
 Device/Detector/IDetector.cpp | 2 +-
 Device/Detector/IDetector.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Device/Detector/IDetector.cpp b/Device/Detector/IDetector.cpp
index 27db71881a8..dee16f00e66 100644
--- a/Device/Detector/IDetector.cpp
+++ b/Device/Detector/IDetector.cpp
@@ -178,7 +178,7 @@ Datafield IDetector::createDetectorMap() const
     ASSERT(m_frame);
     auto* f = new Frame(*m_frame);
     f->setAxes(std::move(axes));
-    return Datafield(f);
+    return {f};
 }
 
 std::pair<double, double> IDetector::regionOfInterestBounds(size_t iAxis) const
diff --git a/Device/Detector/IDetector.h b/Device/Detector/IDetector.h
index 40b354fc679..22e137ee3b6 100644
--- a/Device/Detector/IDetector.h
+++ b/Device/Detector/IDetector.h
@@ -111,7 +111,7 @@ public:
     virtual size_t indexOfSpecular(const Beam& beam) const = 0;
 
     //! Applies the detector resolution to the given intensity maps
-    void applyDetectorResolution(Datafield* intensity_map) const;
+    void applyDetectorResolution(Datafield* df) const;
 
     //! True if a region of interest is explicitly set.
     bool hasExplicitRegionOfInterest() const;
-- 
GitLab