fix: PVS-Studio V550

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
Vyacheslav Ivanov
2024-08-03 23:00:10 +03:00
committed by Pugemon
parent 3621e7ce1b
commit ab28b4df70
4 changed files with 19 additions and 14 deletions
+2 -2
View File
@@ -261,7 +261,7 @@ void ALSpeaker::setPitch(float pitch) {
}
bool ALSpeaker::isLoop() const {
return AL::getSourcei(source, AL_LOOPING) == AL_TRUE;
return AL::getSourcei(source, AL_LOOPING) == AL_TRUE; //-V550
}
void ALSpeaker::setLoop(bool loop) {
@@ -343,7 +343,7 @@ void ALSpeaker::setRelative(bool relative) {
}
bool ALSpeaker::isRelative() const {
return AL::getSourcei(source, AL_SOURCE_RELATIVE) == AL_TRUE;
return AL::getSourcei(source, AL_SOURCE_RELATIVE) == AL_TRUE; //-V550
}
int ALSpeaker::getPriority() const {