Skip to content

Commit

Permalink
Fix TypeUtils.cpp formatting - should have had braces for all if stat…
Browse files Browse the repository at this point in the history
…ements
  • Loading branch information
amaitland committed Jul 6, 2016
1 parent a58297c commit 18793c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CefSharp.BrowserSubprocess.Core/TypeUtils.cpp
Expand Up @@ -156,15 +156,25 @@ namespace CefSharp
}

if (obj->IsBool())
{
return gcnew System::Boolean(obj->GetBoolValue());
}
if (obj->IsInt())
{
return gcnew System::Int32(obj->GetIntValue());
}
if (obj->IsDouble())
{
return gcnew System::Double(obj->GetDoubleValue());
}
if (obj->IsString())
{
return StringUtils::ToClr(obj->GetStringValue());
}
if (obj->IsDate())
{
return TypeUtils::ConvertCefTimeToDateTime(obj->GetDateValue());
}

if (obj->IsArray())
{
Expand Down Expand Up @@ -198,7 +208,9 @@ namespace CefSharp
if (obj->IsFunction())
{
if (callbackRegistry == nullptr)
{
return nullptr;
}

return callbackRegistry->Register(CefV8Context::GetCurrentContext(), obj);
}
Expand Down

0 comments on commit 18793c6

Please sign in to comment.