From e8441205a421f12dfa1896a0e7010e6d877ed78f Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 1 Mar 2025 19:11:30 +0100 Subject: [PATCH] emplace (was insert) --- include/sp/common/DataBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sp/common/DataBuffer.h b/include/sp/common/DataBuffer.h index c387eb9..d9cf312 100644 --- a/include/sp/common/DataBuffer.h +++ b/include/sp/common/DataBuffer.h @@ -166,7 +166,7 @@ class DataBuffer { K newKey; V newValue; *this >> newKey >> newValue; - data.insert({newKey, newValue}); + data.emplace(newKey, newValue); } return *this; }