mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Make params const and pass by ref
This commit is contained in:
@@ -11,7 +11,7 @@ namespace CefSharp
|
||||
{
|
||||
namespace Async
|
||||
{
|
||||
void JavascriptAsyncMethodCallback::Success(CefRefPtr<CefV8Value> result)
|
||||
void JavascriptAsyncMethodCallback::Success(const CefRefPtr<CefV8Value>& result)
|
||||
{
|
||||
if (_resolve.get() && _context.get() && _context->Enter())
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace CefSharp
|
||||
}
|
||||
}
|
||||
|
||||
void JavascriptAsyncMethodCallback::Fail(CefString exception)
|
||||
void JavascriptAsyncMethodCallback::Fail(const CefString& exception)
|
||||
{
|
||||
if (_reject.get() && _context.get() && _context->Enter())
|
||||
{
|
||||
|
||||
@@ -38,9 +38,9 @@ namespace CefSharp
|
||||
this->!JavascriptAsyncMethodCallback();
|
||||
}
|
||||
|
||||
void Success(CefRefPtr<CefV8Value> result);
|
||||
void Success(const CefRefPtr<CefV8Value>& result);
|
||||
|
||||
void Fail(CefString exception);
|
||||
void Fail(const CefString& exception);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CefSharp
|
||||
{
|
||||
namespace Serialization
|
||||
{
|
||||
JavascriptRootObject^ DeserializeJsObject(CefRefPtr<CefListValue> &list, int index)
|
||||
JavascriptRootObject^ DeserializeJsObject(const CefRefPtr<CefListValue>& list, int index)
|
||||
{
|
||||
auto result = gcnew JavascriptRootObject();
|
||||
auto subList = list->GetList(index);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CefSharp
|
||||
{
|
||||
namespace Serialization
|
||||
{
|
||||
JavascriptRootObject^ DeserializeJsObject(CefRefPtr<CefListValue> &list, int index);
|
||||
JavascriptRootObject^ DeserializeJsObject(const CefRefPtr<CefListValue>& list, int index);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user