[gnome-mahjongg] Code fix as per the gnome coding conventions
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] Code fix as per the gnome coding conventions
- Date: Tue, 21 Oct 2014 23:29:28 +0000 (UTC)
commit 6368c99d40a5af7605e6231abeebf506e02367d6
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Tue Oct 21 17:11:20 2014 +0530
Code fix as per the gnome coding conventions
Code cleanup as per gnome coding guidelines
https://bugzilla.gnome.org/show_bug.cgi?id=738924
src/game.vala | 2 +-
src/gnome-mahjongg.vala | 4 ++--
src/map.vala | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index aff0921..87d0fc5 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -359,7 +359,7 @@ public class Game : Object
{
int count = 0;
foreach (var tile in tiles)
- if (tile_can_move(tile))
+ if (tile_can_move (tile))
count++;
return count;
}
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 83b32f6..9a13419 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -573,7 +573,7 @@ public class Mahjongg : Gtk.Application
private void shuffle_cb ()
{
- game_view.game.shuffle_remaining();
+ game_view.game.shuffle_remaining ();
}
private void about_cb ()
@@ -805,7 +805,7 @@ public class Mahjongg : Gtk.Application
var app = new Mahjongg ();
var result = app.run (args);
- Settings.sync();
+ Settings.sync ();
return result;
}
diff --git a/src/map.vala b/src/map.vala
index 629abf4..6111814 100644
--- a/src/map.vala
+++ b/src/map.vala
@@ -275,7 +275,7 @@ public class MapLoader : Object
{
for (var i = 0; attribute_names[i] != null; i++)
{
- if (attribute_names[i].down() == name)
+ if (attribute_names[i].down () == name)
return attribute_values[i];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]