Index: shell/src/GcCommand.cpp |
=================================================================== |
--- a/shell/src/GcCommand.cpp |
+++ b/shell/src/GcCommand.cpp |
@@ -1,18 +1,18 @@ |
#include "GcCommand.h" |
-GcCommand::GcCommand(AdblockPlus::JsEngine& jsEngine) |
+GcCommand::GcCommand(AdblockPlus::JsEnginePtr jsEngine) |
: Command("gc"), jsEngine(jsEngine) |
{ |
} |
void GcCommand::operator()(const std::string& arguments) |
{ |
- jsEngine.Gc(); |
+ jsEngine->Gc(); |
} |
std::string GcCommand::GetDescription() const |
{ |
return "Initiates a garbage collection"; |
} |
std::string GcCommand::GetUsage() const |