From 0033e521793bde2e1d9150f067d3613a4bc28eb5 Mon Sep 17 00:00:00 2001 From: reuk Date: Sun, 5 Feb 2023 12:43:07 +0000 Subject: [PATCH] VBlankAttachment: Make isEmpty const --- modules/juce_gui_basics/windows/juce_VBlankAttachement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_VBlankAttachement.h b/modules/juce_gui_basics/windows/juce_VBlankAttachement.h index 2eb9daa935..19514eb2e7 100644 --- a/modules/juce_gui_basics/windows/juce_VBlankAttachement.h +++ b/modules/juce_gui_basics/windows/juce_VBlankAttachement.h @@ -34,7 +34,7 @@ class JUCE_API VBlankAttachment final : public ComponentPeer::VBlankListener, { public: /** Default constructor for creating an empty object. */ - VBlankAttachment() {} + VBlankAttachment() = default; /** Constructor. Creates an attachment that will call the passed in function at every vertical blank event of the display that the passed in Component is currently visible on. @@ -49,7 +49,7 @@ public: ~VBlankAttachment() override; /** Returns true for a default constructed object. */ - bool isEmpty() { return owner == nullptr; } + bool isEmpty() const { return owner == nullptr; } //============================================================================== void onVBlank() override;