Author: wlux
Date: Fri Jul 1 14:33:11 2016
New Revision: 39955
URL: http://svn.gna.org/viewcvs/gnustep?rev=39955&view=rev
Log:
Make use of local variables that have been assigned already.
Modified:
libs/base/trunk/Source/GSICUString.m
Modified: libs/base/trunk/Source/GSICUString.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSICUString.m?rev=39955&r1=39954&r2=39955&view=diff
==============================================================================
--- libs/base/trunk/Source/GSICUString.m (original)
+++ libs/base/trunk/Source/GSICUString.m Fri Jul 1 14:33:11 2016
@@ -59,12 +59,12 @@
if (forward)
{
- if (nativeIndex < nativeLimit && nativeIndex >= ut->chunkNativeStart)
+ if (nativeIndex < nativeLimit && nativeIndex >= nativeStart)
{
/* The chunk already contains the index, set the offset
* to match it.
*/
- ut->chunkOffset = nativeIndex - ut->chunkNativeStart;
+ ut->chunkOffset = nativeIndex - nativeStart;
return TRUE;
}
@@ -92,12 +92,12 @@
}
else
{
- if (nativeIndex <= nativeLimit && nativeIndex > ut->chunkNativeStart)
+ if (nativeIndex <= nativeLimit && nativeIndex > nativeStart)
{
/* The chunk already contains the index, set the offset
* to match it.
*/
- ut->chunkOffset = nativeIndex - ut->chunkNativeStart;
+ ut->chunkOffset = nativeIndex - nativeStart;
return TRUE;
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs