Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d1dccf3

Browse files
authored
fix: Remove unnecessary std::move from temporary objects in Text struct (#2090)
1 parent 88efee0 commit d1dccf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/common/message_content_text.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ struct Text : JsonSerializable {
148148
// Parse annotations array
149149
if (json.isMember("annotations") && json["annotations"].isArray()) {
150150
for (const auto& annotation_json : json["annotations"]) {
151-
std::string type = std::move(annotation_json["type"].asString());
151+
std::string type = annotation_json["type"].asString();
152152
std::string annotation_text =
153-
std::move(annotation_json["text"].asString());
153+
annotation_json["text"].asString();
154154
uint32_t start_index = annotation_json["start_index"].asUInt();
155155
uint32_t end_index = annotation_json["end_index"].asUInt();
156156

0 commit comments

Comments
 (0)