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

VBlankAttachment: Make isEmpty const

This commit is contained in:
reuk 2023-02-05 12:43:07 +00:00
parent a662e5584b
commit 0033e52179
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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;