summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-method.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-06-17 18:28:52 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-06-17 18:28:52 +0200
commit97553e635d2265ec4aad96b00b1fd72d98437f15 (patch)
treefe7b9d415707408dccfc9ec329e6e98cff9d7e0a /apt-pkg/acquire-method.cc
parent0cef11a38f14432bf36bf34225ec06c52b2cfb65 (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 'apt-pkg/acquire-method.cc')
-rw-r--r--apt-pkg/acquire-method.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-method.cc b/apt-pkg/acquire-method.cc
index ae5ae4a15..f2a61a144 100644
--- a/apt-pkg/acquire-method.cc
+++ b/apt-pkg/acquire-method.cc
@@ -416,7 +416,7 @@ int pkgAcqMethod::Run(bool Single)
Tmp->Uri = LookupTag(Message,"URI");
Tmp->Proxy(LookupTag(Message, "Proxy"));
Tmp->DestFile = LookupTag(Message,"FileName");
- if (RFC1123StrToTime(LookupTag(Message,"Last-Modified").c_str(),Tmp->LastModified) == false)
+ if (RFC1123StrToTime(LookupTag(Message,"Last-Modified"),Tmp->LastModified) == false)
Tmp->LastModified = 0;
Tmp->IndexFile = StringToBool(LookupTag(Message,"Index-File"),false);
Tmp->FailIgnore = StringToBool(LookupTag(Message,"Fail-Ignore"),false);