From 656b63dbf6fab2f57119c1edf5cadc76ff2b37b2 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 16 Dec 2024 11:32:21 +1000 Subject: [PATCH] Remove some useless calls --- src/core/layertree/qgslayertreemodellegendnode.cpp | 1 - src/gui/qgsattributeform.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/core/layertree/qgslayertreemodellegendnode.cpp b/src/core/layertree/qgslayertreemodellegendnode.cpp index 7ebd00138106..ac6709580df3 100644 --- a/src/core/layertree/qgslayertreemodellegendnode.cpp +++ b/src/core/layertree/qgslayertreemodellegendnode.cpp @@ -835,7 +835,6 @@ QJsonObject QgsSymbolLegendNode::exportSymbolToJson( const QgsLegendSettings &se { json[ QStringLiteral( "scaleMinDenom" ) ] = mItem.scaleMinDenom(); } - mItem.scaleMaxDenom(); const QgsSymbol *s = mCustomSymbol ? mCustomSymbol.get() : mItem.symbol(); if ( !s ) diff --git a/src/gui/qgsattributeform.cpp b/src/gui/qgsattributeform.cpp index 6c1293aa8187..a005c176871b 100644 --- a/src/gui/qgsattributeform.cpp +++ b/src/gui/qgsattributeform.cpp @@ -781,7 +781,6 @@ bool QgsAttributeForm::saveMultiEdits() //find changed attributes QgsAttributeMap newAttributeValues; const QList fieldIndexes = mFormEditorWidgets.uniqueKeys(); - mFormEditorWidgets.constBegin(); for ( int fieldIndex : fieldIndexes ) { const QList widgets = mFormEditorWidgets.values( fieldIndex );