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

Tidied up a few compiler warnings in the demo code.

This commit is contained in:
jules 2015-07-28 12:49:35 +01:00
parent eb652751c2
commit f26152fa72
7 changed files with 24 additions and 17 deletions

View file

@ -368,19 +368,19 @@ private:
case MainAppWindow::useLookAndFeelV1:
result.setInfo ("Use LookAndFeel_V1", String::empty, generalCategory, 0);
result.addDefaultKeypress ('i', ModifierKeys::commandModifier);
result.setTicked (typeid (LookAndFeel_V1) == typeid (getLookAndFeel()));
result.setTicked (isLookAndFeelSelected<LookAndFeel_V1>());
break;
case MainAppWindow::useLookAndFeelV2:
result.setInfo ("Use LookAndFeel_V2", String::empty, generalCategory, 0);
result.addDefaultKeypress ('o', ModifierKeys::commandModifier);
result.setTicked (typeid (LookAndFeel_V2) == typeid (getLookAndFeel()));
result.setTicked (isLookAndFeelSelected<LookAndFeel_V2>());
break;
case MainAppWindow::useLookAndFeelV3:
result.setInfo ("Use LookAndFeel_V3", String::empty, generalCategory, 0);
result.addDefaultKeypress ('p', ModifierKeys::commandModifier);
result.setTicked (typeid (LookAndFeel_V3) == typeid (getLookAndFeel()));
result.setTicked (isLookAndFeelSelected<LookAndFeel_V3>());
break;
case MainAppWindow::toggleRepaintDebugging:
@ -478,6 +478,13 @@ private:
return true;
}
template <typename LookAndFeelType>
bool isLookAndFeelSelected()
{
LookAndFeel& lf = getLookAndFeel();
return typeid (LookAndFeelType) == typeid (lf);
}
};
//==============================================================================