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

Unified Diff: shell/src/PrefsCommand.cpp

Issue 29508569: Issue 5450 - don't expose std::shared_ptr<JsEngine> (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 7, 2017, 8:39 a.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 | « shell/src/Main.cpp ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/PrefsCommand.cpp
diff --git a/shell/src/PrefsCommand.cpp b/shell/src/PrefsCommand.cpp
index 8da6bb671befeaa5f0726ce95a85324a4149693b..76ab12dfa70fe69f212ed10c841a3845e994d620 100644
--- a/shell/src/PrefsCommand.cpp
+++ b/shell/src/PrefsCommand.cpp
@@ -69,19 +69,19 @@ void PrefsCommand::operator()(const std::string& arguments)
{
std::string value;
std::getline(argumentStream, value);
- filterEngine.SetPref(pref, filterEngine.GetJsEngine()->NewValue(value));
+ filterEngine.SetPref(pref, filterEngine.GetJsEngine().NewValue(value));
}
else if (current.IsNumber())
{
int64_t value;
argumentStream >> value;
- filterEngine.SetPref(pref, filterEngine.GetJsEngine()->NewValue(value));
+ filterEngine.SetPref(pref, filterEngine.GetJsEngine().NewValue(value));
}
else if (current.IsBool())
{
bool value;
argumentStream >> value;
- filterEngine.SetPref(pref, filterEngine.GetJsEngine()->NewValue(value));
+ filterEngine.SetPref(pref, filterEngine.GetJsEngine().NewValue(value));
}
else
std::cout << "Cannot set a preference of unknown type" << std::endl;
« no previous file with comments | « shell/src/Main.cpp ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld