Revision: 3390
http://skim-app.svn.sourceforge.net/skim-app/?rev=3390&view=rev
Author: hofman
Date: 2008-02-11 11:16:24 -0800 (Mon, 11 Feb 2008)
Log Message:
-----------
Initialize variable to avoid compiler warning.
Modified Paths:
--------------
trunk/NSScanner_SKExtensions.m
Modified: trunk/NSScanner_SKExtensions.m
===================================================================
--- trunk/NSScanner_SKExtensions.m 2008-02-11 18:30:39 UTC (rev 3389)
+++ trunk/NSScanner_SKExtensions.m 2008-02-11 19:16:24 UTC (rev 3390)
@@ -43,14 +43,14 @@
- (BOOL)scanCharacter:(unichar *)ch {
int location, length = [[self string] length];
- unichar character;
+ unichar character = 0;
BOOL success = NO;
for (location = [self scanLocation]; success == NO && location < length;
location++) {
character = [[self string] characterAtIndex:location];
success = [[self charactersToBeSkipped] characterIsMember:character]
== NO;
}
if (success) {
- if (ch != NULL)
+ if (ch != 0)
*ch = character;
[self setScanLocation:location];
}
@@ -59,13 +59,13 @@
- (BOOL)peekCharacter:(unichar *)ch {
int location, length = [[self string] length];
- unichar character;
+ unichar character = 0;
BOOL success = NO;
for (location = [self scanLocation]; success == NO && location < length;
location++) {
character = [[self string] characterAtIndex:location];
success = [[self charactersToBeSkipped] characterIsMember:character]
== NO;
}
- if (success && ch != NULL)
+ if (success && ch != 0)
*ch = character;
return success;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit