| OLD | NEW |
| 1 #include "GcCommand.h" | 1 #include "GcCommand.h" |
| 2 | 2 |
| 3 GcCommand::GcCommand(AdblockPlus::JsEngine& jsEngine) | 3 GcCommand::GcCommand(AdblockPlus::JsEnginePtr jsEngine) |
| 4 : Command("gc"), jsEngine(jsEngine) | 4 : Command("gc"), jsEngine(jsEngine) |
| 5 { | 5 { |
| 6 } | 6 } |
| 7 | 7 |
| 8 void GcCommand::operator()(const std::string& arguments) | 8 void GcCommand::operator()(const std::string& arguments) |
| 9 { | 9 { |
| 10 jsEngine.Gc(); | 10 jsEngine->Gc(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 std::string GcCommand::GetDescription() const | 13 std::string GcCommand::GetDescription() const |
| 14 { | 14 { |
| 15 return "Initiates a garbage collection"; | 15 return "Initiates a garbage collection"; |
| 16 } | 16 } |
| 17 | 17 |
| 18 std::string GcCommand::GetUsage() const | 18 std::string GcCommand::GetUsage() const |
| 19 { | 19 { |
| 20 return name; | 20 return name; |
| 21 } | 21 } |
| OLD | NEW |