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:
parent
a662e5584b
commit
0033e52179
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue