Author: rmottola
Date: Wed Mar  2 22:58:10 2016
New Revision: 39446

URL: http://svn.gna.org/viewcvs/gnustep?rev=39446&view=rev
Log:
minor cleanup

Modified:
    apps/gworkspace/trunk/Inspector/Contents.m

Modified: apps/gworkspace/trunk/Inspector/Contents.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/Inspector/Contents.m?rev=39446&r1=39445&r2=39446&view=diff
==============================================================================
--- apps/gworkspace/trunk/Inspector/Contents.m  (original)
+++ apps/gworkspace/trunk/Inspector/Contents.m  Wed Mar  2 22:58:10 2016
@@ -1,6 +1,6 @@
 /* Contents.m
  *  
- * Copyright (C) 2004-2013 Free Software Foundation, Inc.
+ * Copyright (C) 2004-2016 Free Software Foundation, Inc.
  *
  * Author: Enrico Sersale <[email protected]>
  * Date: January 2004
@@ -176,42 +176,47 @@
 
 - (id)viewerForPath:(NSString *)path
 {
-       int i;
+  NSInteger i;
   
   if ((path == nil) || ([fm fileExistsAtPath: path] == NO)) {
     return nil;
   }
     
-       for (i = 0; i < [viewers count]; i++) {
-               id vwr = [viewers objectAtIndex: i];            
-               if ([vwr canDisplayPath: path]) {
-                       return vwr;
-    }                          
-       }
-
-       return nil;
+  for (i = 0; i < [viewers count]; i++)
+    {
+      id vwr = [viewers objectAtIndex: i];             
+      if ([vwr canDisplayPath: path])
+        {
+          return vwr;
+        }                              
+    }
+  
+  return nil;
 }
 
 - (id)viewerForDataOfType:(NSString *)type
 {
-  int i;
-  
-       for (i = 0; i < [viewers count]; i++) {
-               id vwr = [viewers objectAtIndex: i];            
-    
-    if ([vwr respondsToSelector: @selector(canDisplayDataOfType:)]) {
-      if ([vwr canDisplayDataOfType: type]) {
-                         return vwr;
-      }
-    }                          
-       }
+  NSInteger i;
+  
+  for (i = 0; i < [viewers count]; i++)
+    {
+      id vwr = [viewers objectAtIndex: i];             
+      
+      if ([vwr respondsToSelector: @selector(canDisplayDataOfType:)])
+        {
+          if ([vwr canDisplayDataOfType: type])
+            {
+              return vwr;
+            }
+        }                              
+    }
   
   return nil;
 }
 
 - (void)showContentsAt:(NSString *)path
 {
-       NSString *winName;
+  NSString *winName;
 
   if (currentViewer) {
     if ([currentViewer respondsToSelector: @selector(stopTasks)]) {
@@ -219,8 +224,9 @@
     }
   }   
              
-       if (path && [fm fileExistsAtPath: path]) {
-               id viewer = [self viewerForPath: path];
+  if (path && [fm fileExistsAtPath: path])
+    {
+      id viewer = [self viewerForPath: path];
 
     if (currentPath && ([currentPath isEqual: path] == NO)) {
       [inspector removeWatcherForPath: currentPath];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to