Permalink
Browse files

Improving diff_tokensToCharsMungeCFStringCreate().

  • Loading branch information...
1 parent fed921f commit fb28fe2ab9c41bc18ca2f5a4fa222e57485edcb4 @JanX2 committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 DiffMatchPatchCFUtilities.c
@@ -527,7 +527,7 @@ CFStringRef diff_tokensToCharsMungeCFStringCreate(CFStringRef text, CFMutableArr
while (mask != kCFStringTokenizerTokenNone) {
tokenRange = CFStringTokenizerGetCurrentTokenRange(tokenizer);
- token = diff_CFStringCreateSubstring(text, tokenRange.location, tokenRange.length);
+ token = CFStringCreateWithSubstring(kCFAllocatorDefault, text, tokenRange);
diff_mungeHelper(token, tokenArray, tokenHash, chars);
CFRelease(token);

0 comments on commit fb28fe2

Please sign in to comment.