Index: src/engine/Updater.cpp |
=================================================================== |
--- a/src/engine/Updater.cpp |
+++ b/src/engine/Updater.cpp |
@@ -76,11 +76,16 @@ |
} |
} |
-Updater::Updater(AdblockPlus::JsEnginePtr jsEngine, const std::string& url) |
- : jsEngine(jsEngine), url(url), tempFile(GetAppDataPath() + L"\\update.msi") |
+Updater::Updater(AdblockPlus::JsEnginePtr jsEngine) |
+ : jsEngine(jsEngine), tempFile(GetAppDataPath() + L"\\update.msi") |
{ |
} |
+void Updater::SetUrl(const std::string& url) |
+{ |
+ this->url = url; |
+} |
+ |
void Updater::Update() |
{ |
Debug("Downloading update: " + url); |