[gnome-games/wip/exalm/cleanups: 7/9] Add missing spaces before opening braces



commit 913108c62ccd2d6ae8934d6cb50379e6ec043b11
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Sep 11 15:07:26 2018 +0500

    Add missing spaces before opening braces
    
    Follow the coding style described in CodingStyle.txt

 plugins/desktop/src/desktop-plugin.vala         |  2 +-
 plugins/dreamcast/src/dreamcast-plugin.vala     |  2 +-
 plugins/game-cube/src/game-cube-plugin.vala     |  2 +-
 plugins/libretro/src/libretro-plugin.vala       |  2 +-
 plugins/love/src/love-package.vala              | 12 ++++++------
 plugins/love/src/love-plugin.vala               |  2 +-
 plugins/mame/src/mame-game-info.vala            |  2 +-
 plugins/mame/src/mame-plugin.vala               |  2 +-
 plugins/nintendo-ds/src/nintendo-ds-plugin.vala |  2 +-
 plugins/playstation/src/playstation-plugin.vala |  2 +-
 plugins/sega-cd/src/sega-cd-plugin.vala         |  2 +-
 plugins/sega-saturn/src/sega-saturn-plugin.vala |  2 +-
 plugins/steam/src/steam-plugin.vala             |  2 +-
 plugins/virtual-boy/src/virtual-boy-plugin.vala |  2 +-
 plugins/wii/src/wii-plugin.vala                 |  2 +-
 src/generic/generic-genre.vala                  |  2 +-
 src/retro/retro-runner.vala                     | 12 ++++++------
 src/ui/application-window.vala                  |  2 +-
 src/ui/application.vala                         |  2 +-
 src/ui/collection-icon-view.vala                |  4 ++--
 src/ui/gamepad-configurer.vala                  |  2 +-
 src/ui/keyboard-configurer.vala                 |  2 +-
 src/ui/platforms-view.vala                      |  2 +-
 src/ui/preferences-page-controllers.vala        |  2 +-
 src/utils/cue-sheet/cue-sheet.vala              |  4 ++--
 25 files changed, 37 insertions(+), 37 deletions(-)
---
diff --git a/plugins/desktop/src/desktop-plugin.vala b/plugins/desktop/src/desktop-plugin.vala
index 0a8781c4..62d51582 100644
--- a/plugins/desktop/src/desktop-plugin.vala
+++ b/plugins/desktop/src/desktop-plugin.vala
@@ -153,5 +153,5 @@ private class Games.DesktopPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.DesktopPlugin);
+       return typeof (Games.DesktopPlugin);
 }
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index 82459850..98e299a0 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -62,5 +62,5 @@ private class Games.DreamcastPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.DreamcastPlugin);
+       return typeof (Games.DreamcastPlugin);
 }
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index 9046ed18..cf53e3b1 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -62,5 +62,5 @@ private class Games.GameCubePlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.GameCubePlugin);
+       return typeof (Games.GameCubePlugin);
 }
diff --git a/plugins/libretro/src/libretro-plugin.vala b/plugins/libretro/src/libretro-plugin.vala
index 9cf2737e..e12737da 100644
--- a/plugins/libretro/src/libretro-plugin.vala
+++ b/plugins/libretro/src/libretro-plugin.vala
@@ -50,5 +50,5 @@ private class Games.LibretroPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.LibretroPlugin);
+       return typeof (Games.LibretroPlugin);
 }
diff --git a/plugins/love/src/love-package.vala b/plugins/love/src/love-package.vala
index d4f9dfd1..ab484346 100644
--- a/plugins/love/src/love-package.vala
+++ b/plugins/love/src/love-package.vala
@@ -50,12 +50,12 @@ private class Games.LovePackage : Object {
                archive.support_filter_all ();
                archive.support_format_all ();
 
-               var result = archive.open_filename(path, BLOCK_SIZE);
+               var result = archive.open_filename (path, BLOCK_SIZE);
                if (result != Archive.Result.OK)
                        return false;
 
                weak Archive.Entry entry;
-               while(archive.next_header(out entry) == Archive.Result.OK) {
+               while (archive.next_header (out entry) == Archive.Result.OK) {
                        var file_path = entry.pathname ();
                        if (file_path != path_in_archive)
                                continue;
@@ -75,12 +75,12 @@ private class Games.LovePackage : Object {
                archive.support_filter_all ();
                archive.support_format_all ();
 
-               var result = archive.open_filename(path, BLOCK_SIZE);
+               var result = archive.open_filename (path, BLOCK_SIZE);
                if (result != Archive.Result.OK)
                        return null;
 
                weak Archive.Entry entry;
-               while(archive.next_header(out entry) == Archive.Result.OK) {
+               while (archive.next_header (out entry) == Archive.Result.OK) {
                        var file_path = entry.pathname ();
                        if (file_path != path_in_archive)
                                continue;
@@ -102,12 +102,12 @@ private class Games.LovePackage : Object {
                archive.support_filter_all ();
                archive.support_format_all ();
 
-               var result = archive.open_filename(path, BLOCK_SIZE);
+               var result = archive.open_filename (path, BLOCK_SIZE);
                if (result != Archive.Result.OK)
                        return null;
 
                weak Archive.Entry entry;
-               while(archive.next_header(out entry) == Archive.Result.OK) {
+               while (archive.next_header (out entry) == Archive.Result.OK) {
                        var file_path = entry.pathname ();
                        if (file_path != path_in_archive)
                                continue;
diff --git a/plugins/love/src/love-plugin.vala b/plugins/love/src/love-plugin.vala
index 8eea7327..dbb1253f 100644
--- a/plugins/love/src/love-plugin.vala
+++ b/plugins/love/src/love-plugin.vala
@@ -43,5 +43,5 @@ private class Games.LovePlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.LovePlugin);
+       return typeof (Games.LovePlugin);
 }
diff --git a/plugins/mame/src/mame-game-info.vala b/plugins/mame/src/mame-game-info.vala
index be08436b..fbb57792 100644
--- a/plugins/mame/src/mame-game-info.vala
+++ b/plugins/mame/src/mame-game-info.vala
@@ -33,7 +33,7 @@ private struct Games.MameGameInfo {
                        if (!game_regex.match (line, 0, out match_info))
                                continue;
 
-                       var game_info = MameGameInfo() {
+                       var game_info = MameGameInfo () {
                                id = cleanup_string (match_info.fetch (2)), // NAME
                                company = cleanup_string (match_info.fetch (9)), // COMPANY
                                name = cleanup_string (match_info.fetch (10)) // FULLNAME
diff --git a/plugins/mame/src/mame-plugin.vala b/plugins/mame/src/mame-plugin.vala
index b12bef91..61271639 100644
--- a/plugins/mame/src/mame-plugin.vala
+++ b/plugins/mame/src/mame-plugin.vala
@@ -26,5 +26,5 @@ private class Games.MamePlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.MamePlugin);
+       return typeof (Games.MamePlugin);
 }
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 0ecea196..65f460cb 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -61,5 +61,5 @@ private class Games.NintendoDsPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.NintendoDsPlugin);
+       return typeof (Games.NintendoDsPlugin);
 }
diff --git a/plugins/playstation/src/playstation-plugin.vala b/plugins/playstation/src/playstation-plugin.vala
index 87ee8cd6..b3f37d6a 100644
--- a/plugins/playstation/src/playstation-plugin.vala
+++ b/plugins/playstation/src/playstation-plugin.vala
@@ -24,5 +24,5 @@ private class Games.PlayStation : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.PlayStation);
+       return typeof (Games.PlayStation);
 }
diff --git a/plugins/sega-cd/src/sega-cd-plugin.vala b/plugins/sega-cd/src/sega-cd-plugin.vala
index 9f4ef796..28600955 100644
--- a/plugins/sega-cd/src/sega-cd-plugin.vala
+++ b/plugins/sega-cd/src/sega-cd-plugin.vala
@@ -125,5 +125,5 @@ private class Games.SegaCDPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.SegaCDPlugin);
+       return typeof (Games.SegaCDPlugin);
 }
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index 467f9277..8752ebb3 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -105,5 +105,5 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.SegaSaturnPlugin);
+       return typeof (Games.SegaSaturnPlugin);
 }
diff --git a/plugins/steam/src/steam-plugin.vala b/plugins/steam/src/steam-plugin.vala
index 1bf78efe..6f858e8d 100644
--- a/plugins/steam/src/steam-plugin.vala
+++ b/plugins/steam/src/steam-plugin.vala
@@ -100,5 +100,5 @@ private class Games.SteamPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.SteamPlugin);
+       return typeof (Games.SteamPlugin);
 }
diff --git a/plugins/virtual-boy/src/virtual-boy-plugin.vala b/plugins/virtual-boy/src/virtual-boy-plugin.vala
index 0af121ef..88ac0400 100644
--- a/plugins/virtual-boy/src/virtual-boy-plugin.vala
+++ b/plugins/virtual-boy/src/virtual-boy-plugin.vala
@@ -64,5 +64,5 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.VirtualBoyPlugin);
+       return typeof (Games.VirtualBoyPlugin);
 }
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 54ed9637..591757ed 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -62,5 +62,5 @@ private class Games.WiiPlugin : Object, Plugin {
 
 [ModuleInit]
 public Type register_games_plugin (TypeModule module) {
-       return typeof(Games.WiiPlugin);
+       return typeof (Games.WiiPlugin);
 }
diff --git a/src/generic/generic-genre.vala b/src/generic/generic-genre.vala
index 2c04ff75..3603cab8 100644
--- a/src/generic/generic-genre.vala
+++ b/src/generic/generic-genre.vala
@@ -4,7 +4,7 @@ public class Games.GenericGenre : Object, Genre {
        private List<string> genre;
 
        public GenericGenre (List<string> genre) {
-               this.genre = genre.copy();
+               this.genre = genre.copy ();
        }
 
        public unowned List<string> get_genre () {
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index d14bf4b1..3d59ad72 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -153,7 +153,7 @@ public class Games.RetroRunner : Object, Runner {
                load_media_data ();
 
                if (!is_initialized)
-                       init();
+                       init ();
 
                loop.stop ();
 
@@ -169,7 +169,7 @@ public class Games.RetroRunner : Object, Runner {
 
        public void resume () throws Error {
                if (!is_initialized)
-                       init();
+                       init ();
 
                loop.stop ();
 
@@ -485,7 +485,7 @@ public class Games.RetroRunner : Object, Runner {
 
                var medias_path = get_medias_path ();
 
-               string contents = media_set.selected_media_number.to_string();
+               string contents = media_set.selected_media_number.to_string ();
 
                FileUtils.set_contents (medias_path, contents, contents.length);
        }
@@ -499,7 +499,7 @@ public class Games.RetroRunner : Object, Runner {
                string contents;
                FileUtils.get_contents (medias_path, out contents);
 
-               int disc_num = int.parse(contents);
+               int disc_num = int.parse (contents);
                media_set.selected_media_number = disc_num;
        }
 
@@ -542,8 +542,8 @@ public class Games.RetroRunner : Object, Runner {
                }
                var title = game_title.get_title ();
 
-               var x_dpi = pixbuf.get_option("x-dpi") ?? "";
-               var y_dpi = pixbuf.get_option("y-dpi") ?? "";
+               var x_dpi = pixbuf.get_option ("x-dpi") ?? "";
+               var y_dpi = pixbuf.get_option ("y-dpi") ?? "";
 
                // See http://www.libpng.org/pub/png/spec/iso/index-object.html#11textinfo
                // for description of used keys. "Game Title" and "Platform" are
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index bc932f1b..7082d393 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -525,7 +525,7 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
        }
 
        private bool store_window_size () {
-               var geometry = get_geometry();
+               var geometry = get_geometry ();
                if (geometry == null)
                        return false;
 
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 421d410a..7d1797fe 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -419,7 +419,7 @@ public class Games.Application : Gtk.Application {
        private static Gtk.CssProvider load_css (string css) {
                var provider = new Gtk.CssProvider ();
                try {
-                       var file = File.new_for_uri("resource:///org/gnome/Games/" + css);
+                       var file = File.new_for_uri ("resource:///org/gnome/Games/" + css);
                        provider.load_from_file (file);
                } catch (GLib.Error e) {
                        warning ("Loading CSS file ā€œ%sā€ failed: %s", css, e.message);
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 6944814e..96956de8 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -239,11 +239,11 @@ private class Games.CollectionIconView : Gtk.Bin {
 
        private bool filter_game (Game game) {
                if (filtering_developer != null &&
-                   filtering_developer.get_developer() != game.get_developer().get_developer())
+                   filtering_developer.get_developer () != game.get_developer ().get_developer ())
                        return false;
 
                if (filtering_platform != null &&
-                   filtering_platform.get_name() != game.get_platform().get_name())
+                   filtering_platform.get_name () != game.get_platform ().get_name ())
                        return false;
 
                if (filtering_terms.length != 0)
diff --git a/src/ui/gamepad-configurer.vala b/src/ui/gamepad-configurer.vala
index 42abced4..85fdb668 100644
--- a/src/ui/gamepad-configurer.vala
+++ b/src/ui/gamepad-configurer.vala
@@ -172,7 +172,7 @@ private class Games.GamepadConfigurer : Gtk.Box {
                                        break;
                        }
 
-                       message_dialog.destroy();
+                       message_dialog.destroy ();
                });
                message_dialog.show ();
        }
diff --git a/src/ui/keyboard-configurer.vala b/src/ui/keyboard-configurer.vala
index c14c9f52..f8a37f38 100644
--- a/src/ui/keyboard-configurer.vala
+++ b/src/ui/keyboard-configurer.vala
@@ -165,7 +165,7 @@ private class Games.KeyboardConfigurer : Gtk.Box {
                                        break;
                        }
 
-                       message_dialog.destroy();
+                       message_dialog.destroy ();
                });
                message_dialog.show ();
        }
diff --git a/src/ui/platforms-view.vala b/src/ui/platforms-view.vala
index 9702abbc..684defc5 100644
--- a/src/ui/platforms-view.vala
+++ b/src/ui/platforms-view.vala
@@ -4,7 +4,7 @@ private class Games.PlatformsView : SidebarView {
        private GenericSet<Platform> platforms = new GenericSet<Platform> (Platform.hash, Platform.equal);
 
        protected override void game_added (Game game) {
-               var platform = game.get_platform();
+               var platform = game.get_platform ();
 
                if (!platforms.contains (platform)) {
                        platforms.add (platform);
diff --git a/src/ui/preferences-page-controllers.vala b/src/ui/preferences-page-controllers.vala
index a90b8a72..ddc234dc 100644
--- a/src/ui/preferences-page-controllers.vala
+++ b/src/ui/preferences-page-controllers.vala
@@ -80,7 +80,7 @@ private class Games.PreferencesPageControllers: Gtk.Stack, PreferencesPage {
                if (device == null)
                        return;
 
-               var configurer = new GamepadConfigurer(device);
+               var configurer = new GamepadConfigurer (device);
                back_handler_id = configurer.back.connect (on_back);
                header_bar_binding = configurer.bind_property ("header-bar", this, "header-bar",
                                                               BindingFlags.SYNC_CREATE);
diff --git a/src/utils/cue-sheet/cue-sheet.vala b/src/utils/cue-sheet/cue-sheet.vala
index b334b035..3326491b 100644
--- a/src/utils/cue-sheet/cue-sheet.vala
+++ b/src/utils/cue-sheet/cue-sheet.vala
@@ -102,7 +102,7 @@ public class Games.CueSheet : Object {
                is_token ("FILE", ref tokens, ref i, line);
                var file_name = get_token (ref tokens, ref i, line);
                var file_format_string = get_optional_token (ref tokens, ref i, line);
-               is_end_of_line  (ref tokens, ref i, line);
+               is_end_of_line (ref tokens, ref i, line);
 
                if (file_name.has_prefix ("\"") && file_name.has_suffix ("\"") && file_name.length > 1)
                        file_name = file_name[1: file_name.length - 1];
@@ -123,7 +123,7 @@ public class Games.CueSheet : Object {
                is_token ("TRACK", ref tokens, ref i, line);
                var track_number_string = get_token (ref tokens, ref i, line);
                var track_mode_string = get_token (ref tokens, ref i, line);
-               is_end_of_line  (ref tokens, ref i, line);
+               is_end_of_line (ref tokens, ref i, line);
 
                var track_number = int.parse (track_number_string);
                if (track_number < 1 || track_number > 99)


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