Преглед изворни кода

Use && for parameter of boundary

yhirose пре 5 година
родитељ
комит
969cccd52a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -2817,7 +2817,7 @@ class MultipartFormDataParser {
 public:
   MultipartFormDataParser() = default;
 
-  void set_boundary(std::string boundary) { boundary_ = std::move(boundary); }
+  void set_boundary(std::string &&boundary) { boundary_ = boundary; }
 
   bool is_valid() const { return is_valid_; }