From 0416a5bc0b5a80deaa8520b9bff0976f35d8cf87 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 16 Dec 2025 15:16:49 -0600 Subject: [PATCH] Gui: Compiler warning cleanup --- src/Gui/DAGView/DAGModel.cpp | 3 --- src/Gui/Dialogs/DlgExpressionInput.cpp | 3 ++- src/Gui/Dialogs/DlgThemeEditor.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Gui/DAGView/DAGModel.cpp b/src/Gui/DAGView/DAGModel.cpp index 5b4af951d7..4575d8f5bb 100644 --- a/src/Gui/DAGView/DAGModel.cpp +++ b/src/Gui/DAGView/DAGModel.cpp @@ -496,9 +496,6 @@ void Model::updateSlot() // sync scene items for graph edge. BGL_FORALL_EDGES(currentEdge, *theGraph, Graph) { - Vertex source = boost::source(currentEdge, *theGraph); - Vertex target = boost::target(currentEdge, *theGraph); - if (!(*theGraph)[currentEdge].connector->scene()) { this->addItem((*theGraph)[currentEdge].connector.get()); } diff --git a/src/Gui/Dialogs/DlgExpressionInput.cpp b/src/Gui/Dialogs/DlgExpressionInput.cpp index e3bc97ab5e..e82d016017 100644 --- a/src/Gui/Dialogs/DlgExpressionInput.cpp +++ b/src/Gui/Dialogs/DlgExpressionInput.cpp @@ -1058,7 +1058,8 @@ void DlgExpressionInput::setMsgText() // elide text if it is going out of widget bounds // note: this is only 'rough elide', as this text is usually not very long; const int msgLinesLimit = 3; - if (wrappedMsg.size() > msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) { + if (static_cast(wrappedMsg.size()) + > msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) { const QString elidedMsg = msgFontMetrics.elidedText( QString::fromStdString(wrappedMsg), Qt::ElideRight, diff --git a/src/Gui/Dialogs/DlgThemeEditor.h b/src/Gui/Dialogs/DlgThemeEditor.h index b0c634f8ac..4989eca631 100644 --- a/src/Gui/Dialogs/DlgThemeEditor.h +++ b/src/Gui/Dialogs/DlgThemeEditor.h @@ -94,7 +94,7 @@ public: std::optional get(const std::string& name) const override; void reset(); - void flush(); + void flush() override; int rowCount(const QModelIndex& index) const override; int columnCount(const QModelIndex& index) const override;