Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FilterEngine.cpp

Issue 29453651: Noissue - fix typo "dowload" to "download" (n is absent) (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created June 1, 2017, 4:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
diff --git a/src/FilterEngine.cpp b/src/FilterEngine.cpp
index 745d1d52b77b9e2bf7e5fde6bb56b48ba135df6f..bf590f6f4c42f69e5f949648960f9a5291ee7886 100644
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -225,8 +225,8 @@ void FilterEngine::CreateAsync(const JsEnginePtr& jsEngine,
// TODO: replace weakFilterEngine by this when it's possible to control the
// execution time of the asynchronous part below.
std::weak_ptr<FilterEngine> weakFilterEngine = filterEngine;
- auto isSubscriptionDowloadAllowedCallback = params.isSubscriptionDowloadAllowedCallback;
- jsEngine->SetEventCallback("_isSubscriptionDownloadAllowed", [weakFilterEngine, isSubscriptionDowloadAllowedCallback](JsValueList&& params){
+ auto isSubscriptionDownloadAllowedCallback = params.isSubscriptionDownloadAllowedCallback;
+ jsEngine->SetEventCallback("_isSubscriptionDownloadAllowed", [weakFilterEngine, isSubscriptionDownloadAllowedCallback](JsValueList&& params){
auto filterEngine = weakFilterEngine.lock();
if (!filterEngine)
return;
@@ -238,7 +238,7 @@ void FilterEngine::CreateAsync(const JsEnginePtr& jsEngine,
assert(areArgumentsValid && "Invalid argument: there should be two args and the second one should be a function");
if (!areArgumentsValid)
return;
- if (!isSubscriptionDowloadAllowedCallback)
+ if (!isSubscriptionDownloadAllowedCallback)
{
params[1].Call(jsEngine->NewValue(true));
return;
@@ -254,7 +254,7 @@ void FilterEngine::CreateAsync(const JsEnginePtr& jsEngine,
jsParams[1].Call(jsEngine->NewValue(isAllowed));
};
std::string allowedConnectionType = params[0].IsString() ? params[0].AsString() : std::string();
- isSubscriptionDowloadAllowedCallback(params[0].IsString() ? &allowedConnectionType : nullptr, callJsCallback);
+ isSubscriptionDownloadAllowedCallback(params[0].IsString() ? &allowedConnectionType : nullptr, callJsCallback);
});
}
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld