diff options
author | Shea Levy <shea@shealevy.com> | 2016-08-31T13·57-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-08-31T13·57-0400 |
commit | dfe09386148901e4d9f2dc84641d2d5544c886f7 (patch) | |
tree | 15a106b8b30ff5a57d995803288d7f41fc8caa47 /src/libstore/download.hh | |
parent | 572aba284a161cb94532cec297785266ee719b99 (diff) |
download.hh: Fix conflicts from nix-channel-c++ merge
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index cb7de6ef1d99..011b85f4721b 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -32,12 +32,7 @@ struct Downloader virtual DownloadResult download(string url, const DownloadOptions & options) = 0; Path downloadCached(ref<Store> store, const string & url, bool unpack, string name = "", - const Hash & expectedHash = Hash()); - - /* Need to overload because can't have an rvalue default value for non-const reference */ - - Path downloadCached(ref<Store> store, const string & url, bool unpack, - string & effectiveUrl, const Hash & expectedHash = Hash()); + const Hash & expectedHash = Hash(), string * effectiveUrl = nullptr); enum Error { NotFound, Forbidden, Misc, Transient }; }; |