avoid if() statement compiler warning

svn path=/trunk/KDE/kdebase/workspace/; revision=560604
This commit is contained in:
Dirk Mueller 2006-07-10 19:06:10 +00:00
parent 03fedc56dd
commit c770bb5d22

View file

@ -120,8 +120,9 @@ void writeRules( KConfig& cfg )
cfg.writeEntry( "windowrole", ( const char* ) info->windowRole ); cfg.writeEntry( "windowrole", ( const char* ) info->windowRole );
cfg.writeEntry( "windowrolematch", 1 ); cfg.writeEntry( "windowrolematch", 1 );
} }
if( info->windowType == static_cast< NET::WindowType >( -2 )) // undefined if( info->windowType == static_cast< NET::WindowType >( -2 )) { // undefined
; // all types // all types
}
if( info->windowType == NET::Unknown ) if( info->windowType == NET::Unknown )
cfg.writeEntry( "types", (int)NET::NormalMask ); cfg.writeEntry( "types", (int)NET::NormalMask );
else else