From 2f4fd3811a050fefba1b1e70f9ff359ba5533363 Mon Sep 17 00:00:00 2001 From: Joris Goosen Date: Thu, 14 Nov 2024 13:47:17 +0100 Subject: [PATCH] use auto [,] everywhere --- QMLComponents/models/listmodellayersassigned.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QMLComponents/models/listmodellayersassigned.cpp b/QMLComponents/models/listmodellayersassigned.cpp index f0109f3d36..6c92966ea9 100644 --- a/QMLComponents/models/listmodellayersassigned.cpp +++ b/QMLComponents/models/listmodellayersassigned.cpp @@ -107,7 +107,7 @@ Terms ListModelLayersAssigned::addTerms(const Terms& terms, int dropItemIndex, c int layer = _variablesPerLayer.length(); int indexInLayer = 0; if (dropItemIndex >= 0) - std::tie(layer, indexInLayer) = _getLayer(dropItemIndex, true); + auto [layer, indexInLayer] = _getLayer(dropItemIndex, true); if (layer >= _variablesPerLayer.length()) {