ease scope, in an attempt to dodge a warning

This commit is contained in:
AJ Kelly
2011-02-23 19:47:25 -06:00
parent eed951e046
commit d00b672898
+2
View File
@@ -40,6 +40,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
switch( usagePage ) switch( usagePage )
{ {
case kHIDPage_GenericDesktop: case kHIDPage_GenericDesktop:
{ // ease scope
int iMin = 0; int iMin = 0;
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin ); IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
int iMax = 0; int iMax = 0;
@@ -67,6 +68,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
//LOG->Warn( "Unknown usagePage usage pair: (kHIDPage_GenericDesktop, %d).", usage ); //LOG->Warn( "Unknown usagePage usage pair: (kHIDPage_GenericDesktop, %d).", usage );
break; break;
} }
}
break; break;
case kHIDPage_Button: case kHIDPage_Button:
{ {