1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Tweaks to avoid an obscure compiler warning.

This commit is contained in:
jules 2015-02-05 15:10:27 +00:00
parent c8affe81a6
commit 827e02862c
2 changed files with 3 additions and 3 deletions

View file

@ -1453,12 +1453,12 @@ struct JavascriptEngine::RootObject : public DynamicObject
ObjectClass()
{
setMethod ("dump", dump);
setMethod ("clone", clone);
setMethod ("clone", cloneFn);
}
static Identifier getClassName() { static const Identifier i ("Object"); return i; }
static var dump (Args a) { DBG (JSON::toString (a.thisObject)); (void) a; return var::undefined(); }
static var clone (Args a) { return a.thisObject.clone(); }
static var cloneFn (Args a) { return a.thisObject.clone(); }
};
//==============================================================================

View file

@ -2504,7 +2504,7 @@ void LookAndFeel_V2::layoutFileBrowserComponent (FileBrowserComponent& browserCo
filenameBox->setBounds (x + 50, y, w - 50, controlsHeight);
}
// Pulls a drawable out of compressed valuetree data..
// Pulls a drawable out of compressed ValueTree data..
static Drawable* loadDrawableFromData (const void* data, size_t numBytes)
{
MemoryInputStream m (data, numBytes, false);