Renamed and warnings fixed.
This commit is contained in:
1 parent
22afab8481
commit
f832acb2b6
11 files changed
+68
-62
No files matched your search
@@ -58,7 +58,7 @@ int compare_color(rgba_color c1, rgba_color c2) {
|
||||
newObject.location = _location;
|
||||
newObject.length = _length;
|
||||
newObject.color = _color;
|
||||
|
||||
|
||||
return newObject;
|
||||
}
|
||||
|
||||
@@ -116,11 +116,17 @@ int compare_color(rgba_color c1, rgba_color c2) {
|
||||
NSRange contentRange, contentInternalRange;
|
||||
contentRange.location = openRange.location;
|
||||
contentRange.length = closeRange.location + closeRange.length - openRange.location;
|
||||
|
||||
|
||||
contentInternalRange = contentRange;
|
||||
contentInternalRange.location += 1;
|
||||
contentInternalRange.length -= 2;
|
||||
|
||||
// If the internal content range location is equal to the text length
|
||||
// it means there is no content at all
|
||||
if (contentInternalRange.location == [_text length]) {
|
||||
return NSNotFound;
|
||||
}
|
||||
|
||||
content = [_text substringWithRange:contentInternalRange];
|
||||
|
||||
NSInteger tagType;
|
||||
|
||||
Reference in new issue
Block a user