mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 06:00:44 +00:00
Added change to correct seg fault.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18067 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3380ce66c4
commit
cfdeb3f9cd
2 changed files with 11 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-11-08 17:56 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: [_identifierString:] corrected issue which
|
||||
was causing a segmentation fault.
|
||||
|
||||
2003-11-01 20:35 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormInspectorsManager.m: -ok: method. Removed check which was
|
||||
|
|
|
@ -3032,19 +3032,14 @@ static NSImage *classesImage = nil;
|
|||
// convenience methods for formatting outlets/actions
|
||||
- (NSString*) _identifierString: (NSString*)str
|
||||
{
|
||||
static NSCharacterSet *illegal = nil;
|
||||
static NSCharacterSet *numeric = nil;
|
||||
NSCharacterSet *illegal = [[NSCharacterSet characterSetWithCharactersInString:
|
||||
@"_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"]
|
||||
invertedSet];
|
||||
NSCharacterSet *numeric = [NSCharacterSet characterSetWithCharactersInString:
|
||||
@"0123456789"];
|
||||
NSRange r;
|
||||
NSMutableString *m;
|
||||
|
||||
if (illegal == nil)
|
||||
{
|
||||
illegal = [[NSCharacterSet characterSetWithCharactersInString:
|
||||
@"_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"]
|
||||
invertedSet];
|
||||
numeric = [NSCharacterSet characterSetWithCharactersInString:
|
||||
@"0123456789"];
|
||||
}
|
||||
|
||||
if (str == nil)
|
||||
{
|
||||
return nil;
|
||||
|
|
Loading…
Reference in a new issue