Index: src/ConsoleJsObject.cpp |
diff --git a/src/ConsoleJsObject.cpp b/src/ConsoleJsObject.cpp |
index 4d7619eeedc120cf25037374df88dee1343fa6f1..9730f72838648bd9024883345b959faea4745555 100644 |
--- a/src/ConsoleJsObject.cpp |
+++ b/src/ConsoleJsObject.cpp |
@@ -45,8 +45,8 @@ namespace |
source << AdblockPlus::Utils::FromV8String(frame->GetScriptName()); |
source << ":" << frame->GetLineNumber(); |
- AdblockPlus::LogSystemPtr callback = jsEngine->GetLogSystem(); |
- (*callback)(logLevel, message.str(), source.str()); |
+ AdblockPlus::LogSystem& callback = jsEngine->GetLogSystem(); |
+ callback(logLevel, message.str(), source.str()); |
} |
void LogCallback(const v8::FunctionCallbackInfo<v8::Value>& arguments) |
@@ -97,8 +97,8 @@ namespace |
traceback << std::endl; |
} |
- AdblockPlus::LogSystemPtr callback = jsEngine->GetLogSystem(); |
- (*callback)(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, traceback.str(), ""); |
+ AdblockPlus::LogSystem& callback = jsEngine->GetLogSystem(); |
+ callback(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, traceback.str(), ""); |
} |
} |