mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Reorder params for SetInt64, SetJsCallback and SetCefTime - they're not in a logical order
This commit is contained in:
@@ -16,7 +16,7 @@ namespace CefSharp
|
||||
void SerializeJsObject(JavascriptObject^ jsObject, const CefRefPtr<CefListValue> &list, int index)
|
||||
{
|
||||
auto objList = CefListValue::Create();
|
||||
SetInt64(jsObject->Id, objList, 0);
|
||||
SetInt64(objList, 0, jsObject->Id);
|
||||
objList->SetString(1, StringUtils::ToNative(jsObject->Name));
|
||||
objList->SetString(2, StringUtils::ToNative(jsObject->JavascriptName));
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CefSharp
|
||||
methodList->SetInt(j++, jsObject->Methods->Count);
|
||||
for each (JavascriptMethod^ jsMethod in jsObject->Methods)
|
||||
{
|
||||
SetInt64(jsMethod->Id, methodList, j++);
|
||||
SetInt64(methodList, j++, jsMethod->Id);
|
||||
methodList->SetString(j++, StringUtils::ToNative(jsMethod->ManagedName));
|
||||
methodList->SetString(j++, StringUtils::ToNative(jsMethod->JavascriptName));
|
||||
methodList->SetInt(j++, jsMethod->ParameterCount);
|
||||
@@ -37,7 +37,7 @@ namespace CefSharp
|
||||
propertyList->SetInt(j++, jsObject->Properties->Count);
|
||||
for each(JavascriptProperty^ jsProperty in jsObject->Properties)
|
||||
{
|
||||
SetInt64(jsProperty->Id, propertyList, j++);
|
||||
SetInt64(propertyList, j++, jsProperty->Id);
|
||||
propertyList->SetString(j++, StringUtils::ToNative(jsProperty->ManagedName));
|
||||
propertyList->SetString(j++, StringUtils::ToNative(jsProperty->JavascriptName));
|
||||
propertyList->SetBool(j++, jsProperty->IsComplexType);
|
||||
|
||||
Reference in New Issue
Block a user