mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user