summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_contents_provider.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 00:47:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 00:47:58 +0000
commitc29962f2b123f4d22798046022ad91b8c1774d32 (patch)
treeceec4b9a5c2b331fe6eae0023c5c132e5b90e8e3 /chrome/browser/autocomplete/history_contents_provider.cc
parent5819e220c4bb4bc2f48df4f071deb068bbbbca60 (diff)
downloadchromium_src-c29962f2b123f4d22798046022ad91b8c1774d32.zip
chromium_src-c29962f2b123f4d22798046022ad91b8c1774d32.tar.gz
chromium_src-c29962f2b123f4d22798046022ad91b8c1774d32.tar.bz2
Make WordIterator and Snippet::MatchPositions use size_t instead of int for offsets into strings. This avoids some casts. I also added a typedef for Snippet::MatchPosition which cleans up a bit of the calling code a little.
Review URL: http://codereview.chromium.org/13064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_contents_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc
index ce409eb..9eef77c 100644
--- a/chrome/browser/autocomplete/history_contents_provider.cc
+++ b/chrome/browser/autocomplete/history_contents_provider.cc
@@ -218,7 +218,7 @@ void HistoryContentsProvider::ClassifyDescription(
// Classify matches in the title.
for (Snippet::MatchPositions::const_iterator i = title_matches.begin();
i != title_matches.end(); ++i) {
- if (static_cast<size_t>(i->first) != offset) {
+ if (i->first != offset) {
match->description_class.push_back(
ACMatchClassification(offset, ACMatchClassification::NONE));
}