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

Minor clean-ups

This commit is contained in:
jules 2014-05-23 21:50:43 +01:00
parent 824faca68b
commit c46927d580
3 changed files with 5 additions and 5 deletions

View file

@ -445,12 +445,12 @@ struct AppearanceEditor
public:
FontNameValueSource (const Value& source) : ValueSourceFilter (source) {}
var getValue() const
var getValue() const override
{
return Font::fromString (sourceValue.toString()).getTypefaceName();
}
void setValue (const var& newValue)
void setValue (const var& newValue) override
{
Font font (Font::fromString (sourceValue.toString()));
font.setTypefaceName (newValue.toString().isEmpty() ? Font::getDefaultMonospacedFontName()

View file

@ -35,12 +35,12 @@ class NumericValueSource : public ValueSourceFilter
public:
NumericValueSource (const Value& source) : ValueSourceFilter (source) {}
var getValue() const
var getValue() const override
{
return (Type) sourceValue.getValue();
}
void setValue (const var& newValue)
void setValue (const var& newValue) override
{
const Type newVal = static_cast <Type> (newValue);

View file

@ -155,7 +155,7 @@ private:
bool useDropShadow, useNativeTitleBar, isCurrentlyActive;
ScopedPointer<DropShadower> shadower;
void setWindowActive (bool isNowActive);
void setWindowActive (bool);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TopLevelWindow)
};