mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Prevent empty strings from appearing in formatted result.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ccdcd69734
commit
e66d2777ca
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-01-23 00:41 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormFunctions.m: identifierString() added code which tests
|
||||
the result to see if it's zero length. If it is, it's
|
||||
replaced with "dummyIdentifier".
|
||||
|
||||
2005-01-22 15:38 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassEditor.m: Replaced use of the class methods
|
||||
|
|
|
@ -318,6 +318,12 @@ NSString *identifierString(NSString *str)
|
|||
r = [result rangeOfCharacterFromSet: white];
|
||||
}
|
||||
|
||||
// check the result's length.
|
||||
if([result length] == 0)
|
||||
{
|
||||
result = [NSString stringWithString: @"dummyIdentifier"];
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue