From c2892f82e1d4d5ed046f4ee9cf1955bb97f27021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 6 Feb 2021 21:40:07 +0100 Subject: Avoid unnecessary copying in range loops --- src/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/message.cpp') diff --git a/src/message.cpp b/src/message.cpp index f8e0d96..eb1212c 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -73,7 +73,7 @@ Ref DirectMessageData::store(const Storage & st) const { vector items; - for (const auto prev : prev) + for (const auto & prev : prev) items.emplace_back("PREV", prev.ref()); if (from) items.emplace_back("from", from->ref().value()); -- cgit v1.2.3