Fix comparing int with bool (#6637)

Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
Bimal Poudel
2023-04-29 22:07:13 -06:00
committed by GitHub
parent ffe3bb4399
commit 3440d49aa8
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ void PatternClip::loadSettings(const QDomElement& element)
}
changeLength( element.attribute( "len" ).toInt() );
setStartTimeOffset(element.attribute("off").toInt());
if( element.attribute( "muted" ).toInt() != isMuted() )
if (static_cast<bool>(element.attribute("muted").toInt()) != isMuted())
{
toggleMute();
}

View File

@@ -424,7 +424,7 @@ void MidiClip::loadSettings( const QDomElement & _this )
{
movePosition( _this.attribute( "pos" ).toInt() );
}
if( _this.attribute( "muted" ).toInt() != isMuted() )
if (static_cast<bool>(_this.attribute("muted").toInt()) != isMuted())
{
toggleMute();
}