From 1917bbe2e116f3154912526c4e98c9eaab13b3fc Mon Sep 17 00:00:00 2001 From: Joachim Wuttke <j.wuttke@fz-juelich.de> Date: Tue, 14 Nov 2023 08:32:10 +0100 Subject: [PATCH] mark MCI c'tor calls with dummy arg 4712 --- GUI/Model/Data/Data2DItem.cpp | 2 +- GUI/Model/Data/ProjectionItems.cpp | 2 +- GUI/Model/Detector/DetectorItem.cpp | 1 + GUI/Model/Mask/MaskContainerItem.cpp | 2 +- GUI/Model/Mask/MaskContainerItem.h | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GUI/Model/Data/Data2DItem.cpp b/GUI/Model/Data/Data2DItem.cpp index c9c6f1b6c16..f8db3267487 100644 --- a/GUI/Model/Data/Data2DItem.cpp +++ b/GUI/Model/Data/Data2DItem.cpp @@ -368,7 +368,7 @@ const MaskContainerItem* Data2DItem::maskContainerItem() const MaskContainerItem* Data2DItem::getOrCreateMaskContainerItem() { if (!m_maskContainerItem) - m_maskContainerItem.reset(new MaskContainerItem); + m_maskContainerItem.reset(new MaskContainerItem(4712)); return m_maskContainerItem.get(); } diff --git a/GUI/Model/Data/ProjectionItems.cpp b/GUI/Model/Data/ProjectionItems.cpp index 2873864c42f..ded3af54fa8 100644 --- a/GUI/Model/Data/ProjectionItems.cpp +++ b/GUI/Model/Data/ProjectionItems.cpp @@ -16,7 +16,7 @@ #include "GUI/Model/Mask/MaskItems.h" ProjectionContainerItem::ProjectionContainerItem() - : MaskContainerItem() + : MaskContainerItem(4712) { } diff --git a/GUI/Model/Detector/DetectorItem.cpp b/GUI/Model/Detector/DetectorItem.cpp index 1aeb2e288e1..c0b59b68e9e 100644 --- a/GUI/Model/Detector/DetectorItem.cpp +++ b/GUI/Model/Detector/DetectorItem.cpp @@ -41,6 +41,7 @@ const double default_alpha_max = 3; } // namespace DetectorItem::DetectorItem() + : m_maskContainerItem(4712) { m_phiAxis.initMin("Min (deg)", "Lower edge of first phi-bin", -2.0, RealLimits::limited(-90, 90)); diff --git a/GUI/Model/Mask/MaskContainerItem.cpp b/GUI/Model/Mask/MaskContainerItem.cpp index b4afcb06f3e..0a7bfe3a0b6 100644 --- a/GUI/Model/Mask/MaskContainerItem.cpp +++ b/GUI/Model/Mask/MaskContainerItem.cpp @@ -27,7 +27,7 @@ const QString Mask("Mask"); } // namespace Tag } // namespace -MaskContainerItem::MaskContainerItem() +MaskContainerItem::MaskContainerItem(int) : MaskRoot() , m_model(new MaskContainerModel(this)) , m_selectionModel(new QItemSelectionModel(m_model.get())) diff --git a/GUI/Model/Mask/MaskContainerItem.h b/GUI/Model/Mask/MaskContainerItem.h index 2474ae2da38..ea8abfd1309 100644 --- a/GUI/Model/Mask/MaskContainerItem.h +++ b/GUI/Model/Mask/MaskContainerItem.h @@ -30,7 +30,7 @@ class RegionOfInterestItem; class MaskContainerItem : public MaskRoot { public: - MaskContainerItem(); + MaskContainerItem(int); ~MaskContainerItem(); QVector<MaskItem*> maskItems() const; -- GitLab