Author: rmottola
Date: Mon Jan 4 18:13:55 2016
New Revision: 39251
URL: http://svn.gna.org/viewcvs/gnustep?rev=39251&view=rev
Log:
minor code cleanup
Modified:
apps/gworkspace/trunk/GWorkspace/GWorkspace.m
Modified: apps/gworkspace/trunk/GWorkspace/GWorkspace.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/GWorkspace/GWorkspace.m?rev=39251&r1=39250&r2=39251&view=diff
==============================================================================
--- apps/gworkspace/trunk/GWorkspace/GWorkspace.m (original)
+++ apps/gworkspace/trunk/GWorkspace/GWorkspace.m Mon Jan 4 18:13:55 2016
@@ -1266,7 +1266,7 @@
- (void)openSelectedPathsWith
{
BOOL canopen = YES;
- int i;
+ NSUInteger i;
for (i = 0; i < [selectedPaths count]; i++) {
FSNode *node = [FSNode nodeWithPath: [selectedPaths objectAtIndex: i]];
@@ -1430,7 +1430,8 @@
{
NSString *basePath;
NSMutableArray *files;
- int tag, i;
+ int tag;
+ NSUInteger i;
basePath = [NSString stringWithString: [selectedPaths objectAtIndex: 0]];
basePath = [basePath stringByDeletingLastPathComponent];
@@ -1456,7 +1457,8 @@
{
NSString *basePath;
NSMutableArray *files;
- int tag, i;
+ int tag;
+ NSUInteger i;
basePath = [NSString stringWithString: [selectedPaths objectAtIndex: 0]];
basePath = [basePath stringByDeletingLastPathComponent];
@@ -1572,18 +1574,19 @@
NSArray *deleted = [info objectForKey: @"deleted"];
NSArray *created = [info objectForKey: @"created"];
NSMutableArray *tmbdirs = [NSMutableArray array];
- int i;
+ NSUInteger i;
[fsnodeRep thumbnailsDidChange: info];
- if ([fsnodeRep usesThumbnails] == NO) {
+ if ([fsnodeRep usesThumbnails] == NO)
return;
- } else {
- NSString *thumbnailDir =
[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES)
lastObject];
-
- thumbnailDir = [thumbnailDir stringByAppendingPathComponent:
@"Thumbnails"];
-
- if (deleted && [deleted count]) {
+
+ NSString *thumbnailDir =
[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES)
lastObject];
+
+ thumbnailDir = [thumbnailDir stringByAppendingPathComponent: @"Thumbnails"];
+
+ if (deleted && [deleted count])
+ {
for (i = 0; i < [deleted count]; i++) {
NSString *path = [deleted objectAtIndex: i];
NSString *dir = [path stringByDeletingLastPathComponent];
@@ -1596,9 +1599,8 @@
[vwrsManager thumbnailsDidChangeInPaths: tmbdirs];
[dtopManager thumbnailsDidChangeInPaths: tmbdirs];
- if ([tshelfWin isVisible]) {
+ if ([tshelfWin isVisible])
[tshelfWin updateIcons];
- }
[tmbdirs removeAllObjects];
}
@@ -1631,7 +1633,6 @@
[tshelfWin updateIcons];
}
}
- }
}
- (void)removableMediaPathsDidChange:(NSNotification *)notif
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs