diff options
| author | Aotrix <[email protected]> | 2026-02-23 22:28:10 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-02-23 22:28:10 +0100 |
| commit | a20c4abc424404518bcb656a3f22f43991a6c164 (patch) | |
| tree | 8883bfa47714a604592c0854d71f90b0997e1a7d /battleNetApi/src/main.cpp | |
| parent | 2fca87cdbf2da7fcb95bc38e6b09692720a18baf (diff) | |
Use setDownloadMethod
Diffstat (limited to 'battleNetApi/src/main.cpp')
| -rw-r--r-- | battleNetApi/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/battleNetApi/src/main.cpp b/battleNetApi/src/main.cpp index a1c64a3..3c36a8d 100644 --- a/battleNetApi/src/main.cpp +++ b/battleNetApi/src/main.cpp @@ -28,7 +28,7 @@ class DownloaderContext { public: DownloaderContext() = default; DownloaderContext(std::unique_ptr<DownloadMethod> iDownloader) : mDownloader(std::move(iDownloader)) {}; - void setDownloader(std::unique_ptr<DownloadMethod> iDownloader) { mDownloader = std::move(iDownloader); } + void setDownloadMethod(std::unique_ptr<DownloadMethod> iDownloader) { mDownloader = std::move(iDownloader); } void download() { if (mDownloader) { mDownloader->download(); @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) { DownloaderContext aDownloaderContext; if (argc < 4) { - aDownloaderContext.setDownloader(std::make_unique<DefaultDownloadMethod>()); + aDownloaderContext.setDownloadMethod(std::make_unique<DefaultDownloadMethod>()); } else { // TODO: retrieve config from JSON file } |
