Permalink
Browse files

Changing diff_CFStringCreateSubstring() to CF_INLINE.

  • Loading branch information...
1 parent fb28fe2 commit 46a5c4b5472d85bfd68927ea81d863b604f6505d @JanX2 committed May 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 DiffMatchPatchCFUtilities.c
View
3 DiffMatchPatchCFUtilities.c
@@ -29,7 +29,6 @@
#include <limits.h>
#include <AssertMacros.h>
-CFStringRef diff_CFStringCreateSubstring(CFStringRef text, CFIndex start_index, CFIndex length);
CFRange diff_RightSubstringRange(CFIndex text_length, CFIndex new_length);
CFStringRef diff_CFStringCreateRightSubstring(CFStringRef text, CFIndex text_length, CFIndex new_length);
CFRange diff_LeftSubstringRange(CFIndex new_length);
@@ -48,7 +47,7 @@ CFStringRef diff_CFStringCreateFromUnichar(UniChar ch) {
return c;
}
-CFStringRef diff_CFStringCreateSubstring(CFStringRef text, CFIndex start_index, CFIndex length) {
+CF_INLINE CFStringRef diff_CFStringCreateSubstring(CFStringRef text, CFIndex start_index, CFIndex length) {
CFRange substringRange = {
.length = length,
.location = start_index,

0 comments on commit 46a5c4b

Please sign in to comment.