mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-23 21:52:13 +00:00
Fix for NXConstantString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8eea5697a0
commit
54be29028f
2 changed files with 32 additions and 3 deletions
|
@ -63,6 +63,8 @@
|
|||
#include <gnustep/base/NSGSequence.h>
|
||||
#include <gnustep/base/Unicode.h>
|
||||
#include <gnustep/base/GetDefEncoding.h>
|
||||
#include <gnustep/base/NSGString.h>
|
||||
#include <gnustep/base/NSGCString.h>
|
||||
|
||||
// Uncomment when implemented
|
||||
static NSStringEncoding _availableEncodings[] = {
|
||||
|
@ -2737,6 +2739,16 @@ else
|
|||
|
||||
@implementation NXConstantString
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
BOOL beenHere = NO;
|
||||
|
||||
if (beenHere == NO) {
|
||||
beenHere = YES;
|
||||
class_add_behavior(self, [NSGCString class]);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* NXConstantString overrides [-dealloc] so that it is never deallocated.
|
||||
* If we pass an NXConstantString to another process it will never get
|
||||
|
@ -2748,6 +2760,21 @@ else
|
|||
return [self superclass];
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
{
|
||||
return [super hash];
|
||||
}
|
||||
|
||||
- (BOOL) isEqual: (id)anObject
|
||||
{
|
||||
return [super isEqual: anObject];
|
||||
}
|
||||
|
||||
- (BOOL) isEqualToString: (NSString*)aString
|
||||
{
|
||||
return [super isEqualToString: aString];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue