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

Unified Diff: shell/src/Main.cpp

Issue 29508591: Issue 5450 - don't expose std::shared_ptr<FilterEngine> (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: rebase Created Aug. 7, 2017, 1:08 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/Platform.h ('k') | src/Platform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/Main.cpp
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp
index 5e26f625cdfdd674df9773ba2343e97e73c28b0d..16b136313839b2cee1802a850843387acfd15f4c 100644
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -66,15 +66,15 @@ int main()
AdblockPlus::Platform platform;
platform.SetUpJsEngine(appInfo);
AdblockPlus::JsEngine& jsEngine = platform.GetJsEngine();
- auto filterEngine = platform.GetFilterEngine();
+ auto& filterEngine = platform.GetFilterEngine();
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
Add(commands, new HelpCommand(commands));
- Add(commands, new FiltersCommand(*filterEngine));
- Add(commands, new SubscriptionsCommand(*filterEngine));
- Add(commands, new MatchesCommand(*filterEngine));
- Add(commands, new PrefsCommand(*filterEngine));
+ Add(commands, new FiltersCommand(filterEngine));
+ Add(commands, new SubscriptionsCommand(filterEngine));
+ Add(commands, new MatchesCommand(filterEngine));
+ Add(commands, new PrefsCommand(filterEngine));
std::string commandLine;
while (ReadCommandLine(commandLine))
« no previous file with comments | « include/AdblockPlus/Platform.h ('k') | src/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld