mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Fixed some whitespace style and cleaned up some code using C++11
This commit is contained in:
parent
405a6aeaed
commit
8ed41ed14b
95 changed files with 310 additions and 320 deletions
|
|
@ -590,7 +590,7 @@ public:
|
|||
{
|
||||
switch (r.nextInt (depth > 3 ? 6 : 8))
|
||||
{
|
||||
case 0: return var();
|
||||
case 0: return {};
|
||||
case 1: return r.nextInt();
|
||||
case 2: return r.nextInt64();
|
||||
case 3: return r.nextBool();
|
||||
|
|
@ -618,7 +618,7 @@ public:
|
|||
}
|
||||
|
||||
default:
|
||||
return var();
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ struct JavascriptEngine::RootObject : public DynamicObject
|
|||
|
||||
// if there's a class with an overridden DynamicObject::hasMethod, this avoids an error
|
||||
if (o->hasMethod (functionName))
|
||||
return var();
|
||||
return {};
|
||||
}
|
||||
|
||||
if (targetObject.isString())
|
||||
|
|
@ -517,7 +517,7 @@ struct JavascriptEngine::RootObject : public DynamicObject
|
|||
}
|
||||
|
||||
var throwError (const char* typeName) const
|
||||
{ location.throwError (getTokenName (operation) + " is not allowed on the " + typeName + " type"); return var(); }
|
||||
{ location.throwError (getTokenName (operation) + " is not allowed on the " + typeName + " type"); return {}; }
|
||||
};
|
||||
|
||||
struct EqualsOp : public BinaryOperator
|
||||
|
|
@ -757,7 +757,7 @@ struct JavascriptEngine::RootObject : public DynamicObject
|
|||
if (o->hasMethod (dot->child)) // allow an overridden DynamicObject::invokeMethod to accept a method call.
|
||||
return o->invokeMethod (dot->child, args);
|
||||
|
||||
location.throwError ("This expression is not a function!"); return var();
|
||||
location.throwError ("This expression is not a function!"); return {};
|
||||
}
|
||||
|
||||
ExpPtr object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue