From 364fddceccab7cb6fd5642646feab649bbe8a12d Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 16 Dec 2025 15:18:00 -0600 Subject: [PATCH] TechDraw: Compiler warning cleanup --- src/Mod/TechDraw/App/DrawComplexSection.cpp | 4 ++-- src/Mod/TechDraw/Gui/QGIView.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawComplexSection.cpp b/src/Mod/TechDraw/App/DrawComplexSection.cpp index 2846af7ecb..2065c0926e 100644 --- a/src/Mod/TechDraw/App/DrawComplexSection.cpp +++ b/src/Mod/TechDraw/App/DrawComplexSection.cpp @@ -1558,13 +1558,13 @@ DrawComplexSection::findNormalForFace(const TopoDS_Face& face, const std::vector>& normalKV, const std::vector& segmentEdges) { - int index = getSegmentIndex(face, segmentEdges); + size_t index = getSegmentIndex(face, segmentEdges); if (index < 0 || index >= segmentEdges.size()) { //NOLINT throw Base::RuntimeError("DCS::findNormalForFace - did not find normal for face!"); } for (auto& keyValue : normalKV) { - if (keyValue.first == index) { + if (static_cast(keyValue.first) == index) { return keyValue; } } diff --git a/src/Mod/TechDraw/Gui/QGIView.cpp b/src/Mod/TechDraw/Gui/QGIView.cpp index 0f3ca64fc1..19b0574b6d 100644 --- a/src/Mod/TechDraw/Gui/QGIView.cpp +++ b/src/Mod/TechDraw/Gui/QGIView.cpp @@ -74,8 +74,6 @@ using namespace TechDrawGui; using namespace TechDraw; using DU = DrawUtil; -const float labelCaptionFudge = 0.2f; // temp fiddle for devel - QGIView::QGIView() :QGraphicsItemGroup(), m_isHovered(false),