From 5901124521effa194603b7751833e946e418b41f Mon Sep 17 00:00:00 2001 From: Akarshan Biswas Date: Mon, 10 Mar 2025 10:36:21 +0530 Subject: [PATCH] fix: Remove unnecessary std::move from temporary objects in Text struct --- engine/common/message_content_text.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/message_content_text.h b/engine/common/message_content_text.h index 5ede2582d..5a64a2f80 100644 --- a/engine/common/message_content_text.h +++ b/engine/common/message_content_text.h @@ -148,9 +148,9 @@ struct Text : JsonSerializable { // Parse annotations array if (json.isMember("annotations") && json["annotations"].isArray()) { for (const auto& annotation_json : json["annotations"]) { - std::string type = std::move(annotation_json["type"].asString()); + std::string type = annotation_json["type"].asString(); std::string annotation_text = - std::move(annotation_json["text"].asString()); + annotation_json["text"].asString(); uint32_t start_index = annotation_json["start_index"].asUInt(); uint32_t end_index = annotation_json["end_index"].asUInt();