From 5337b9e963e166dcbeda2e88d0b8133429585d1c Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 15 Aug 2023 14:45:19 +0100 Subject: [PATCH] Use std::map::contains --- source/app/commands/importattributescommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/commands/importattributescommand.cpp b/source/app/commands/importattributescommand.cpp index c08de8daf..8658bfefb 100644 --- a/source/app/commands/importattributescommand.cpp +++ b/source/app/commands/importattributescommand.cpp @@ -148,7 +148,7 @@ bool ImportAttributesCommand::execute() for(auto elementId : elementIds) { - auto value = u::contains(map, elementId) ? + auto value = map.contains(elementId) ? _data.valueAt(static_cast(columnIndex), map.at(elementId)) : QString{}; userData->setValueBy(elementId, name, value); }