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

Unified Diff: ui/app_list/app_list_model.cc

Issue 10408009: ui: Change ListModel to operate in size_t instead of int. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest Created 8 years, 7 months 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 | « ui/app_list/app_list_model.h ('k') | ui/app_list/app_list_model_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_model.cc
diff --git a/ui/app_list/app_list_model.cc b/ui/app_list/app_list_model.cc
index 529ed161a594385edacc57d66703ee2f8ddb9996..f0f8f115f81ea45f9f1616fee08f7fe1b79b60af 100644
--- a/ui/app_list/app_list_model.cc
+++ b/ui/app_list/app_list_model.cc
@@ -16,15 +16,15 @@ void AppListModel::AddItem(AppListItemModel* item) {
items_.Add(item);
}
-void AppListModel::AddItemAt(int index, AppListItemModel* item) {
+void AppListModel::AddItemAt(size_t index, AppListItemModel* item) {
items_.AddAt(index, item);
}
-void AppListModel::DeleteItemAt(int index) {
+void AppListModel::DeleteItemAt(size_t index) {
items_.DeleteAt(index);
}
-AppListItemModel* AppListModel::GetItemAt(int index) {
+AppListItemModel* AppListModel::GetItemAt(size_t index) {
return items_.GetItemAt(index);
}
« no previous file with comments | « ui/app_list/app_list_model.h ('k') | ui/app_list/app_list_model_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698