adium 4570:6fa6b93fcf88: Fixed 2 "The right operand to '-' is al...
commits at adium.im
commits at adium.im
Thu Jan 26 23:36:14 UTC 2012
details: http://hg.adium.im/adium/rev/6fa6b93fcf88
revision: 4570:6fa6b93fcf88
branch: (none)
author: Adrian Godoroja <robotive at me.com>
date: Fri Jan 27 01:36:07 2012 +0200
Fixed 2 "The right operand to '-' is always 0". Analyzer Warnings--.
diffs (24 lines):
diff -r 284f6d593ee4 -r 6fa6b93fcf88 Frameworks/AIUtilities Framework/Source/AIAttributedStringAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AIAttributedStringAdditions.m Fri Jan 27 01:23:38 2012 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIAttributedStringAdditions.m Fri Jan 27 01:36:07 2012 +0200
@@ -295,7 +295,7 @@
attachmentRange = [[self string] rangeOfString:attachmentCharacterString
options:0
range:NSMakeRange(currentLocation,
- [self length] - currentLocation)];
+ [self length])];
while (attachmentRange.length != 0) { //if we found an attachment
NSTextAttachment *attachment = [self attribute:NSAttachmentAttributeName
diff -r 284f6d593ee4 -r 6fa6b93fcf88 Frameworks/Adium Framework/Source/AIMessageEntryTextView.m
--- a/Frameworks/Adium Framework/Source/AIMessageEntryTextView.m Fri Jan 27 01:23:38 2012 +0200
+++ b/Frameworks/Adium Framework/Source/AIMessageEntryTextView.m Fri Jan 27 01:36:07 2012 +0200
@@ -1623,7 +1623,7 @@
attachmentRange = [[attributedString string] rangeOfString:attachmentCharacterString
options:0
range:NSMakeRange(currentLocation,
- [attributedString length] - currentLocation)];
+ [attributedString length])];
while (attachmentRange.length != 0) {
//Found an attachment in at attachmentRange.location
NSTextAttachment *attachment = [attributedString attribute:NSAttachmentAttributeName
More information about the commits
mailing list