1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Minor clean-ups for GL, removed some old VC6 hacks.

This commit is contained in:
jules 2012-04-03 20:25:05 +01:00
parent 7d9e06d788
commit 0e1b6061d5
27 changed files with 102 additions and 2104 deletions

View file

@ -191,7 +191,7 @@ bool ProjectContentComponent::setEditorComponent (Component* editor, OpenDocumen
void ProjectContentComponent::updateMainWindowTitle()
{
MainWindow* mw = Component::findParentComponentOfClass ((MainWindow*) 0);
MainWindow* mw = findParentComponentOfClass<MainWindow>();
if (mw != nullptr)
mw->updateTitle (currentDocument != nullptr ? currentDocument->getName() : String::empty);
@ -329,7 +329,7 @@ bool ProjectContentComponent::perform (const InvocationInfo& info)
case CommandIDs::closeProject:
{
MainWindow* mw = Component::findParentComponentOfClass ((MainWindow*) 0);
MainWindow* mw = findParentComponentOfClass<MainWindow>();
if (mw != nullptr)
{