[iagno] Fixed compile warnings



commit 441ce69d86cdabb608eeb6aee82c11b7eb347a67
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Nov 1 21:23:51 2017 +0200

    Fixed compile warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789787

 src/computer-player.vala |    6 +++---
 src/iagno.vala           |    8 ++++----
 src/themes-dialog.vala   |    2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/computer-player.vala b/src/computer-player.vala
index 42be1c2..8d8cc06 100644
--- a/src/computer-player.vala
+++ b/src/computer-player.vala
@@ -35,8 +35,8 @@ public class ComputerPlayer : Object
     }
 
     /* Big enough. Don't use int.MIN / int.MAX, because int.MIN ≠ - int.MAX */
-    private static const int POSITIVE_INFINITY = 10000;
-    private static const int NEGATIVE_INFINITY = -10000;
+    private const int POSITIVE_INFINITY = 10000;
+    private const int NEGATIVE_INFINITY = -10000;
 
     /* Game being played */
     private Game game;
@@ -45,7 +45,7 @@ public class ComputerPlayer : Object
     private int difficulty_level;
 
     /* Value of owning each location */
-    private static const int[] heuristic =
+    private const int[] heuristic =
     {
         65,  -3, 6, 4, 4, 6,  -3, 65,
         -3, -29, 3, 1, 1, 3, -29, -3,
diff --git a/src/iagno.vala b/src/iagno.vala
index f070e5e..52beaae 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -33,9 +33,9 @@ public class Iagno : Gtk.Application
     private static bool? play_first = null;
 
     /* Seconds */
-    private static const double QUICK_MOVE_DELAY = 0.4;
-    private static const double MODERATE_MOVE_DELAY = 1.7;
-    private static const double SLOW_MOVE_DELAY = 2.0;
+    private const double QUICK_MOVE_DELAY = 0.4;
+    private const double MODERATE_MOVE_DELAY = 1.7;
+    private const double SLOW_MOVE_DELAY = 2.0;
 
     /* Widgets */
     private GameWindow window;
@@ -53,7 +53,7 @@ public class Iagno : Gtk.Application
     /* The game being played */
     private Game? game = null;
 
-    private static const OptionEntry[] option_entries =
+    private const OptionEntry[] option_entries =
     {
         { "alternative-start", 0, 0, OptionArg.NONE, ref alternative_start, N_("Start with an alternative 
position"), null},
         { "fast-mode", 'f', 0, OptionArg.NONE, ref fast_mode, N_("Reduce delay before AI moves"), null},
diff --git a/src/themes-dialog.vala b/src/themes-dialog.vala
index 990673b..93f02d6 100644
--- a/src/themes-dialog.vala
+++ b/src/themes-dialog.vala
@@ -23,7 +23,7 @@ using Gtk;
 [GtkTemplate (ui = "/org/gnome/iagno/ui/themes.ui")]
 public class ThemesDialog : Dialog
 {
-    private static const string PREFIX = "theme-";
+    private const string PREFIX = "theme-";
 
     private GameView view;
 


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