diff options
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 }; }; |