File tree 2 files changed +4
-4
lines changed
include/aws/lambda-runtime
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class invocation_response {
105
105
/* *
106
106
* Create a successful invocation response with the given payload and content-type.
107
107
*/
108
- static invocation_response success (std::string const & payload, std::string const & content_type);
108
+ static invocation_response success (std::string payload, std::string content_type);
109
109
110
110
/* *
111
111
* Create a failure response with the given error message and error type.
Original file line number Diff line number Diff line change @@ -506,12 +506,12 @@ static std::string json_escape(std::string const& in)
506
506
}
507
507
508
508
AWS_LAMBDA_RUNTIME_API
509
- invocation_response invocation_response::success (std::string const & payload, std::string const & content_type)
509
+ invocation_response invocation_response::success (std::string payload, std::string content_type)
510
510
{
511
511
invocation_response r;
512
512
r.m_success = true ;
513
- r.m_content_type = content_type;
514
- r.m_payload = payload;
513
+ r.m_content_type = std::move ( content_type) ;
514
+ r.m_payload = std::move ( payload) ;
515
515
return r;
516
516
}
517
517
You can’t perform that action at this time.
0 commit comments