int2String() -> std::to_string()
This commit is contained in:
parent
71039becd1
commit
5c28943e8f
9 changed files with 17 additions and 24 deletions
|
|
@ -240,7 +240,7 @@ Path downloadFileCached(const string & url, bool unpack)
|
|||
assert(!storePath.empty());
|
||||
replaceSymlink(storePath, fileLink);
|
||||
|
||||
writeFile(dataFile, url + "\n" + res.etag + "\n" + int2String(time(0)) + "\n");
|
||||
writeFile(dataFile, url + "\n" + res.etag + "\n" + std::to_string(time(0)) + "\n");
|
||||
} catch (DownloadError & e) {
|
||||
if (storePath.empty()) throw;
|
||||
printMsg(lvlError, format("warning: %1%; using cached result") % e.msg());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue