Compiler warning cleanup (#26229)

* App: Compiler warning cleanup

* Gui: Compiler warning cleanup

* Assembly: Compiler warning cleanup

* Measure: Compiler warning cleanup

* Sketcher: Compiler warning cleanup

* TechDraw: Compiler warning cleanup

* PartDesign: Compiler warning cleanup
This commit is contained in:
Kacper Donat
2025-12-18 07:50:26 +01:00
committed by GitHub
17 changed files with 21 additions and 27 deletions

View File

@@ -1558,13 +1558,13 @@ DrawComplexSection::findNormalForFace(const TopoDS_Face& face,
const std::vector<std::pair<int, Base::Vector3d>>& normalKV,
const std::vector<TopoDS_Edge>& 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<size_t>(keyValue.first) == index) {
return keyValue;
}
}

View File

@@ -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),