Skip to content

Commit

Permalink
Reformatted switch statement to match project formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroStride committed Jul 25, 2010
1 parent b894678 commit 944bb61
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions abc_opcodes.cpp
Expand Up @@ -634,23 +634,23 @@ void ABCVm::construct(call_context* th, int m)
ASObject* ret;
switch(obj->getObjectType())
{
case T_CLASS:
case T_CLASS:
{
Class_base* o_class=static_cast<Class_base*>(obj);
ret=o_class->getInstance(true,args,m);
break;
}
break;

case T_UNDEFINED:
case T_NULL:
case T_UNDEFINED:
case T_NULL:
{
//Inc ref count to make up for decremnt later
obj->incRef();
ret=obj;
break;
}
break;

case T_FUNCTION:
case T_FUNCTION:
{
SyntheticFunction* sf=dynamic_cast<SyntheticFunction*>(obj);
assert_and_throw(sf);
Expand Down Expand Up @@ -681,15 +681,15 @@ void ABCVm::construct(call_context* th, int m)
sf->incRef();
ret->prototype=new Class_function(sf,asp);
}
break;
}
break;

default:
default:
{
LOG(LOG_ERROR,"Object type " << obj->getObjectType() << " not supported in construct");
throw UnsupportedException("This object is not supported in construct");
break;
}
break;
}

obj->decRef();
Expand Down

0 comments on commit 944bb61

Please sign in to comment.