Make params const and pass by ref

This commit is contained in:
amaitland
2015-08-03 10:43:35 +10:00
parent 7498c65741
commit e274340438
4 changed files with 6 additions and 6 deletions
@@ -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())
{