From 7a7d51a54886a2269f0e1946ebcae1c456f7969f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 20 Dec 2020 07:52:09 +0100 Subject: [PATCH] Fixed Cppcheck warning. Using emplace is not allowed for now for compatibility reasons. --- lib/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index a31e58d43..ed604c674 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -199,7 +199,7 @@ void Settings::loadSummaries() summaryNoreturn[functionName] = true; else // If there is a value for function already keep it, otherwise insert false - summaryNoreturn.emplace(std::pair(functionName, false)); + summaryNoreturn.insert(std::pair(functionName, false)); } } }