discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for NSApplication.m


From: David Relson
Subject: patch for NSApplication.m
Date: Sun, 21 Jul 2002 12:06:14 -0400

Greetings,

Below is a (virtually trivial) patch I noticed some time ago for initialize_gnustep_backend() in NSApplication.m.

The "while ((path = [benum nextObject]))" loop will exit because (1) a valid is path is found and the "break" statement is executed or (2) because method nextObject returns nil. In either case the last statement inside the loop, i.e. "path = nil", is unnecessary.

David



--- NSApplication.m.orig        Sun Jul 21 11:50:49 2002
+++ NSApplication.m     Sun Jul 21 12:00:21 2002
@@ -189,7 +189,6 @@
            path = [path stringByAppendingPathComponent: bundleName];
            if ([[NSFileManager defaultManager] fileExistsAtPath: path])
              break;
-           path = nil;
          }
        NSCAssert1(path != nil,
                  GSGuiLocalizedString (@"Unable to load backend %@",
--------------------------------------------------------
David Relson                   Osage Software Systems, Inc.
relson@osagesoftware.com       Ann Arbor, MI 48103
www.osagesoftware.com          tel:  734.821.8800




reply via email to

[Prev in Thread] Current Thread [Next in Thread]