clang-tidy: Apply modernize-use-bool-literals (#6448)

... and remove never-executed code:

This removes a condition that was always true and two statements
guarded by conditions that were always false.
This commit is contained in:
Levin Oehlmann
2022-06-24 19:38:44 +02:00
committed by GitHub
parent c259220472
commit c5cdab2601
5 changed files with 5 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ QString AudioOss::probeDevice()
if( QFileInfo( dev ).isWritable() == false )
{
int instance = -1;
while( 1 )
while( true )
{
dev = PATH_DEV_DSP + QString::number( ++instance );
if( !QFileInfo( dev ).exists() )