[dconf-editor] Use uint when iterator cannot be negative.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Use uint when iterator cannot be negative.
- Date: Fri, 1 Dec 2017 00:00:22 +0000 (UTC)
commit f59d4c15d1f81ae0783b74eec2e2c2cb1e961dd3
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Dec 1 01:00:06 2017 +0100
Use uint when iterator cannot be negative.
editor/registry-search.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/editor/registry-search.vala b/editor/registry-search.vala
index e3cd05e..0a1a229 100644
--- a/editor/registry-search.vala
+++ b/editor/registry-search.vala
@@ -459,7 +459,7 @@ class RegistrySearch : Grid, PathElement, BrowsableView
if (local != null)
{
GLib.ListStore key_model = ((!) local).key_model;
- for (int i = 0; i < key_model.get_n_items (); i++)
+ for (uint i = 0; i < key_model.get_n_items (); i++)
{
SettingObject item = (SettingObject) key_model.get_item (i);
if (term in item.name)
@@ -544,7 +544,7 @@ class RegistrySearch : Grid, PathElement, BrowsableView
bool local_again = next.full_name == current_path;
GLib.ListStore next_key_model = next.key_model;
- for (int i = 0; i < next_key_model.get_n_items (); i++)
+ for (uint i = 0; i < next_key_model.get_n_items (); i++)
{
SettingObject item = (SettingObject) next_key_model.get_item (i);
if (item is Directory)
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]