Clean up three sets of warnings:
* Ensure all switches have a default when working with enums. * Match defined new[] calls with delete[] calls. * Respect variable initialization order.
This commit is contained in:
+16
-8
@@ -214,10 +214,14 @@ bool ScreenTextEntry::Input( const InputEventPlus &input )
|
||||
{
|
||||
switch( input.type )
|
||||
{
|
||||
case IET_FIRST_PRESS:
|
||||
bLCtrl = true; break;
|
||||
case IET_RELEASE:
|
||||
bLCtrl = false; break;
|
||||
case IET_FIRST_PRESS:
|
||||
bLCtrl = true;
|
||||
break;
|
||||
case IET_RELEASE:
|
||||
bLCtrl = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,10 +229,14 @@ bool ScreenTextEntry::Input( const InputEventPlus &input )
|
||||
{
|
||||
switch( input.type )
|
||||
{
|
||||
case IET_FIRST_PRESS:
|
||||
bRCtrl = true; break;
|
||||
case IET_RELEASE:
|
||||
bRCtrl = false; break;
|
||||
case IET_FIRST_PRESS:
|
||||
bRCtrl = true;
|
||||
break;
|
||||
case IET_RELEASE:
|
||||
bRCtrl = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user