Browse Source

Fixed a mistake in a comment in the LookAndFeel destructor

tags/2021-05-28
ed 7 years ago
parent
commit
846f4b4b50
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp

+ 1
- 1
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp View File

@@ -63,7 +63,7 @@ LookAndFeel::~LookAndFeel()
it before you delete it, or call LookAndFeel::setDefaultLookAndFeel (nullptr) 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 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 declaring your LookAndFeel object before any of the Components that use it as
the LookAndFeel will be destroyed before the Components.
the Components will be destroyed before the LookAndFeel.
Deleting a LookAndFeel is unlikely to cause a crash since most things will use a Deleting a LookAndFeel is unlikely to cause a crash since most things will use a
safe WeakReference to it, but it could cause some unexpected graphical behaviour, safe WeakReference to it, but it could cause some unexpected graphical behaviour,


Loading…
Cancel
Save