Skip to content

Commit 6ced28c

Browse files
committed
Add missing 'const' to Sound::isPlaying()
1 parent f311ce2 commit 6ced28c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/scratchcpp/sound.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class LIBSCRATCHCPP_EXPORT Sound : public Asset
3737
virtual void start();
3838
virtual void stop();
3939

40-
virtual bool isPlaying();
40+
virtual bool isPlaying() const;
4141

4242
Target *target() const;
4343
void setTarget(Target *target);

src/scratch/sound.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void Sound::stop()
8888
}
8989

9090
/*! Returns true if the sound is being played. */
91-
bool Sound::isPlaying()
91+
bool Sound::isPlaying() const
9292
{
9393
return impl->player->isPlaying();
9494
}

0 commit comments

Comments
 (0)