Skip to content

Commit c237642

Browse files
authored
Use std::move for boundary in set_boundary method (#2298)
1 parent f441cd2 commit c237642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,7 @@ class FormDataParser {
59705970
FormDataParser() = default;
59715971

59725972
void set_boundary(std::string &&boundary) {
5973-
boundary_ = boundary;
5973+
boundary_ = std::move(boundary);
59745974
dash_boundary_crlf_ = dash_ + boundary_ + crlf_;
59755975
crlf_dash_boundary_ = crlf_ + dash_ + boundary_;
59765976
}

0 commit comments

Comments
 (0)