diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-06-17 18:28:52 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-06-17 18:28:52 +0200 |
commit | 97553e635d2265ec4aad96b00b1fd72d98437f15 (patch) | |
tree | fe7b9d415707408dccfc9ec329e6e98cff9d7e0a /methods/basehttp.cc | |
parent | 0cef11a38f14432bf36bf34225ec06c52b2cfb65 (diff) |
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.
Diffstat (limited to 'methods/basehttp.cc')
-rw-r--r-- | methods/basehttp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |