bug-gnustep
[Top][All Lists]
Advanced

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

[bug #15177] -[GSMutableSet copyWithZone:] produces an immutable set


From: Larry Campbell
Subject: [bug #15177] -[GSMutableSet copyWithZone:] produces an immutable set
Date: Fri, 9 Dec 2005 20:33:40 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/125.4 (KHTML, like Gecko, Safari) OmniWeb/v563.62

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15177>

                 Summary: -[GSMutableSet copyWithZone:] produces an immutable
set
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Fri 12/09/05 at 20:33
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

/* Override version from GSSet */
- (id) copyWithZone: (NSZone*)z
{
  NSSet *copy = [setClass allocWithZone: z];

  return [copy initWithSet: self copyItems: NO];
}


This is incorrect. It should be:


/* Override version from GSSet */
- (id) copyWithZone: (NSZone*)z
{
  NSSet *copy = [mutableSetClass allocWithZone: z];

  return [copy initWithSet: self copyItems: NO];
}







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15177>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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