From 83e26f839d28c5d9aa75aeab7d924fcaad445007 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 5 Apr 2021 13:38:31 +0200 Subject: Reserve vectors before pushing and other code quality changes (#11161) --- src/nodedef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nodedef.h') diff --git a/src/nodedef.h b/src/nodedef.h index 6fc20518d..7da0e0d07 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -720,7 +720,7 @@ private: * @param i a content ID * @param name a node name */ - void addNameIdMapping(content_t i, std::string name); + void addNameIdMapping(content_t i, const std::string &name); /*! * Removes a content ID from all groups. -- cgit v1.2.3