Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: testing/iossim/iossim.mm

Issue 11471030: Fix bug in iossim's CaseInsensitivePrefixSearch. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/iossim.mm
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm
index 3ccec23d8688ba429f0b94250dc2905a45a89f56..770ca4193bf85702bbad421b29b6f5e1543476bb 100644
--- a/testing/iossim/iossim.mm
+++ b/testing/iossim/iossim.mm
@@ -506,7 +506,7 @@ BOOL CaseInsensitivePrefixSearch(NSString* stringToSearch,
NSStringCompareOptions options = (NSAnchoredSearch | NSCaseInsensitiveSearch);
NSRange range = [stringToSearch rangeOfString:prefixToFind
options:options];
- return range.location != 0;
+ return range.location != NSNotFound;
}
// Prints the usage information to stderr.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698