From 15df20f190924f48a614b338937884703abfa7da Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Tue, 4 Jul 2023 12:33:52 +0200
Subject: [PATCH] sort members to conform with c'tor

---
 Resample/Element/SpecularElement.cpp | 2 +-
 Resample/Element/SpecularElement.h   | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Resample/Element/SpecularElement.cpp b/Resample/Element/SpecularElement.cpp
index 61e31a793b0..5cd217a13e5 100644
--- a/Resample/Element/SpecularElement.cpp
+++ b/Resample/Element/SpecularElement.cpp
@@ -35,9 +35,9 @@ SpecularElement::SpecularElement(size_t i_out, bool computable, double weight, d
                                  const SpinMatrix& polarizer, const SpinMatrix& analyzer, R3 k)
     : IElement(polarizer, analyzer)
     , m_i_out(i_out)
+    , m_computable(computable)
     , m_weight(weight)
     , m_footprint(footprint)
-    , m_computable(computable)
     , m_k(k)
 {
 }
diff --git a/Resample/Element/SpecularElement.h b/Resample/Element/SpecularElement.h
index 4c919ab53f2..8f37c5c05ff 100644
--- a/Resample/Element/SpecularElement.h
+++ b/Resample/Element/SpecularElement.h
@@ -57,11 +57,11 @@ private:
     SpecularElement(size_t i_out, bool computable, double weight, double footprint,
                     const SpinMatrix& polarizer, const SpinMatrix& analyzer, R3 k);
 
-    size_t m_i_out; //!< index in scan, designates the channel to which this element contributes
-    double m_weight;
-    double m_footprint;
+    const size_t m_i_out; //!< index in scan -> the channel to which this element contributes
     const bool m_computable;
-    R3 m_k;
+    const double m_weight;
+    const double m_footprint;
+    const R3 m_k;
 };
 
 #endif // BORNAGAIN_RESAMPLE_ELEMENT_SPECULARELEMENT_H
-- 
GitLab