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

Unified Diff: shell/src/GcCommand.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/GcCommand.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/GcCommand.cpp
diff --git a/shell/src/GcCommand.cpp b/shell/src/GcCommand.cpp
index 2b38d60be7e83873f3e6f4816e23b2e5f378f8dd..bc1ce1bbe0e3a78c8709b78d1c726f4038ebf6de 100644
--- a/shell/src/GcCommand.cpp
+++ b/shell/src/GcCommand.cpp
@@ -17,14 +17,14 @@
#include "GcCommand.h"
-GcCommand::GcCommand(AdblockPlus::JsEnginePtr jsEngine)
+GcCommand::GcCommand(AdblockPlus::JsEngine& jsEngine)
: Command("gc"), jsEngine(jsEngine)
{
}
void GcCommand::operator()(const std::string& arguments)
{
- jsEngine->Gc();
+ jsEngine.Gc();
}
std::string GcCommand::GetDescription() const
« no previous file with comments | « shell/src/GcCommand.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld