use init return value

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31278 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-09-09 21:41:40 +00:00
parent 1d57899ad8
commit 1bbef96f6a
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,9 @@
2010-09-10 Riccardo Mottola
* Source/unix/GSRunLoopCtxt.m: only access array if port responds to selector, or it is not initialized.
* NSDate.m: use init return value
* Source/unix/GSRunLoopCtxt.m: only access array if port responds to selector, or it is not initialized
* Source/NSDate.m,
* Source/NSScanner.m: use init return value
2010-09-10 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1146,7 +1146,7 @@ typedef GSString *ivars;
{
NSScanner *n = [[self class] allocWithZone: zone];
[n initWithString: _string];
n = [n initWithString: _string];
[n setCharactersToBeSkipped: _charactersToBeSkipped];
[n setLocale: _locale];
[n setScanLocation: _scanLocation];