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:
parent
824faca68b
commit
c46927d580
3 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue