From bd8233f7f8005fdf91e04291921984eec0540dc4 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Fri, 1 Sep 2023 13:57:36 +0100 Subject: [PATCH] Docs: Fix a typo --- modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp index af5af21294..476856c439 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp @@ -58,7 +58,7 @@ LookAndFeel::~LookAndFeel() - there's a WeakReference to it somewhere else in your code Generally the fix for this will be to make sure you call - Component::setLookandFeel (nullptr) on any components that were still using + Component::setLookAndFeel (nullptr) on any components that were still using it before you delete it, or call LookAndFeel::setDefaultLookAndFeel (nullptr) if you had set it up to be the default one. This assertion can also be avoided by declaring your LookAndFeel object before any of the Components that use it as