Commit 3b4f5f14 authored by Dennis Jenkins's avatar Dennis Jenkins

Fixed two pass-by-value constructors.

parent 1506ad92
...@@ -407,7 +407,10 @@ public: ...@@ -407,7 +407,10 @@ public:
: value_("NONE") : value_("NONE")
{ } { }
explicit Authorization(std::string val) explicit Authorization(std::string &&val)
: value_(std::move(val))
{ }
explicit Authorization(const std::string &val)
: value_(val) : value_(val)
{ } { }
...@@ -431,7 +434,10 @@ public: ...@@ -431,7 +434,10 @@ public:
explicit ContentType(const Mime::MediaType& mime) explicit ContentType(const Mime::MediaType& mime)
: mime_(mime) : mime_(mime)
{ } { }
explicit ContentType(std::string raw_mime_str) explicit ContentType(std::string &&raw_mime_str)
: ContentType(Mime::MediaType(std::move(raw_mime_str)))
{ }
explicit ContentType(const std::string &raw_mime_str)
: ContentType(Mime::MediaType(raw_mime_str)) : ContentType(Mime::MediaType(raw_mime_str))
{ } { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment