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;