diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 6fea06dab..8a67e365a 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1016,7 +1016,7 @@ public: const Function * back = &functionList.back(); - functionMap[back->tokenDef->str()] = back; + functionMap.emplace(back->tokenDef->str(), back); } bool hasDefaultConstructor() const;