One more style change

This commit is contained in:
Maximilian Irlinger 2014-09-15 07:27:40 +02:00
parent b29e53229d
commit 71932affc8

View File

@ -101,8 +101,7 @@ static NSString *getStringFromPrefs(const char *key)
const char *dsk; const char *dsk;
int index = 0; int index = 0;
while ((dsk = PrefsFindString("disk", index++)) != NULL) while ((dsk = PrefsFindString("disk", index++)) != NULL) {
{
DiskType *disk = [[DiskType alloc] init]; DiskType *disk = [[DiskType alloc] init];
[disk setPath:[NSString stringWithUTF8String: dsk ]]; [disk setPath:[NSString stringWithUTF8String: dsk ]];
[disk setIsCDROM:NO]; [disk setIsCDROM:NO];
@ -112,7 +111,7 @@ static NSString *getStringFromPrefs(const char *key)
/* Fetch all CDROMs */ /* Fetch all CDROMs */
index = 0; index = 0;
while ((dsk=PrefsFindString("cdrom", index++))!=NULL) { while ((dsk = PrefsFindString("cdrom", index++)) != NULL) {
DiskType *disk = [[DiskType alloc] init]; DiskType *disk = [[DiskType alloc] init];
[disk setPath:[NSString stringWithUTF8String: dsk ]]; [disk setPath:[NSString stringWithUTF8String: dsk ]];
[disk setIsCDROM:YES]; [disk setIsCDROM:YES];