Fix minor warnings

This commit is contained in:
Jens Ayton 2014-11-08 00:26:42 +01:00
parent 0c65dcd829
commit 7b8355529a
3 changed files with 5 additions and 6 deletions

View File

@ -34,8 +34,8 @@ SOFTWARE.
@interface OOFullScreenWindow: NSWindow
@property (nonatomic, readwrite) BOOL canBecomeKeyWindow;
@property (nonatomic, readwrite) BOOL canBecomeMainWindow;
@property (readwrite) BOOL canBecomeKeyWindow;
@property (readwrite) BOOL canBecomeMainWindow;
@end

View File

@ -194,7 +194,7 @@ static OOOXZManager *sSingleton = nil;
[self setOXZList:OOArrayFromFile([self manifestPath])];
OOLog(kOOOXZDebugLog,@"Initialised with %@",_oxzList);
_interfaceState = OXZ_STATE_NODATA;
_currentFilter = [[NSString stringWithString:@"*"] retain];
_currentFilter = @"*";
_interfaceShowingOXZDetail = NO;
_changesMade = NO;

View File

@ -638,7 +638,6 @@ static JSBool SystemInfoSetPropertyMethod(JSContext *context, uintN argc, jsval
NSString *property = nil;
id value = nil;
OOSystemLayer layer = OO_LAYER_OXP_DYNAMIC;
NSString *manifest = nil;
int32 iValue;
@ -653,12 +652,12 @@ static JSBool SystemInfoSetPropertyMethod(JSContext *context, uintN argc, jsval
OOJSReportBadArguments(context, @"SystemInfo", @"setProperty", MIN(argc, 3U), OOJS_ARGV, NULL, @"setProperty(layer, property, value [,manifest])");
return NO;
}
layer = (OOSystemLayer)iValue;
if (layer < 0 || layer >= OO_SYSTEM_LAYERS)
if (iValue < 0 || iValue >= OO_SYSTEM_LAYERS)
{
OOJSReportBadArguments(context, @"SystemInfo", @"setProperty", MIN(argc, 3U), OOJS_ARGV, NULL, @"layer must be 0, 1, 2 or 3");
return NO;
}
OOSystemLayer layer = (OOSystemLayer)iValue;
property = OOStringFromJSValue(context, OOJS_ARGV[1]);
if (!JSVAL_IS_NULL(OOJS_ARGV[2]))