From 97553e635d2265ec4aad96b00b1fd72d98437f15 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 17 Jun 2019 18:28:52 +0200 Subject: RFC1123StrToTime: Accept const std::string& as first argument We are converting to std::string anyway by passing to istringstream, and this removes the need for .c_str() in callers. --- methods/basehttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods') diff --git a/methods/basehttp.cc b/methods/basehttp.cc index 04c194ad9..fd5934b40 100644 --- a/methods/basehttp.cc +++ b/methods/basehttp.cc @@ -232,7 +232,7 @@ bool RequestState::HeaderLine(string const &Line) /*{{{*/ if (stringcasecmp(Tag,"Last-Modified:") == 0) { - if (RFC1123StrToTime(Val.c_str(), Date) == false) + if (RFC1123StrToTime(Val, Date) == false) return _error->Error(_("Unknown date format")); return true; } -- cgit v1.2.3