Make const and pass by ref

This commit is contained in:
amaitland
2015-08-07 13:42:46 +10:00
parent 826aa4fcbf
commit b4e6d6262b
4 changed files with 13 additions and 13 deletions
@@ -11,7 +11,7 @@ namespace CefSharp
{
namespace Internals
{
JavascriptCallback^ JavascriptCallbackRegistry::Register(CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> value)
JavascriptCallback^ JavascriptCallbackRegistry::Register(const CefRefPtr<CefV8Context>& context, const CefRefPtr<CefV8Value>& value)
{
Int64 newId = Interlocked::Increment(_lastId);
JavascriptCallbackWrapper^ wrapper = gcnew JavascriptCallbackWrapper(value, context);