[gnome-games/wip/exalm/cleanups: 8/9] Remove spaces before semicolons in 'for' statements



commit 37d3415d34550bf800a21f2a728e7c5fd1506064
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Sep 11 15:10:48 2018 +0500

    Remove spaces before semicolons in 'for' statements

 plugins/steam/src/steam-registry.vala | 4 ++--
 src/ui/collection-icon-view.vala      | 4 ++--
 src/ui/sidebar-view.vala              | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/steam/src/steam-registry.vala b/plugins/steam/src/steam-registry.vala
index da1f2211..14ead383 100644
--- a/plugins/steam/src/steam-registry.vala
+++ b/plugins/steam/src/steam-registry.vala
@@ -11,7 +11,7 @@ private class Games.SteamRegistry {
 
        public string[] get_children (string[] path) {
                SteamRegistryValue? current_value = tree;
-               for (int i = 0 ; i < path.length ; i++) {
+               for (int i = 0; i < path.length; i++) {
                        if (current_value == null)
                                return {};
 
@@ -35,7 +35,7 @@ private class Games.SteamRegistry {
 
        public string? get_data (string[] path) {
                SteamRegistryValue? current_value = tree;
-               for (int i = 0 ; i < path.length ; i++) {
+               for (int i = 0; i < path.length; i++) {
                        if (current_value == null)
                                return null;
 
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 96956de8..061eefbb 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -43,7 +43,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                        if (model == null)
                                return;
 
-                       for (int i = 0 ; i < model.get_n_items () ; i++) {
+                       for (int i = 0; i < model.get_n_items (); i++) {
                                var game = model.get_item (i) as Game;
                                add_game (game);
                        }
@@ -204,7 +204,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                // necessary.
                assert (removed == 0);
 
-               for (uint i = position ; i < position + added ; i++) {
+               for (uint i = position; i < position + added; i++) {
                        var game = model.get_item (i) as Game;
                        add_game (game);
                }
diff --git a/src/ui/sidebar-view.vala b/src/ui/sidebar-view.vala
index 9981b35b..f3f5996e 100644
--- a/src/ui/sidebar-view.vala
+++ b/src/ui/sidebar-view.vala
@@ -184,7 +184,7 @@ private abstract class Games.SidebarView : Gtk.Box {
                // necessary.
                assert (removed == 0);
 
-               for (uint i = position ; i < position + added ; i++) {
+               for (uint i = position; i < position + added; i++) {
                        var game = model.get_item (i) as Game;
                        game_added (game);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]