[gnome-mines] Fixed static warnings
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Fixed static warnings
- Date: Wed, 2 Nov 2016 07:03:04 +0000 (UTC)
commit bc3ab5ca02ffa92398f28582a6430fe4f12566ef
Author: Robert Roth <robert roth off gmail com>
Date: Wed Nov 2 09:02:52 2016 +0200
Fixed static warnings
src/gnome-mines.vala | 10 +++++-----
src/minefield.vala | 2 +-
src/theme-selector-dialog.vala | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index ddc1dee..1cf3f92 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -25,11 +25,11 @@ public class Mines : Gtk.Application
private static int game_mode = -1;
/* Shared Settings keys */
- public static const string KEY_USE_QUESTION_MARKS = "use-question-marks";
- public static const string KEY_USE_OVERMINE_WARNING = "use-overmine-warning";
- public static const string KEY_USE_AUTOFLAG = "use-autoflag";
- public static const string KEY_THEME = "theme";
- public static const string KEY_USE_ANIMATIONS = "use-animations";
+ public const string KEY_USE_QUESTION_MARKS = "use-question-marks";
+ public const string KEY_USE_OVERMINE_WARNING = "use-overmine-warning";
+ public const string KEY_USE_AUTOFLAG = "use-autoflag";
+ public const string KEY_THEME = "theme";
+ public const string KEY_USE_ANIMATIONS = "use-animations";
private Gtk.Widget main_screen;
private Gtk.Button play_pause_button;
diff --git a/src/minefield.vala b/src/minefield.vala
index 0224961..08ac6ce 100644
--- a/src/minefield.vala
+++ b/src/minefield.vala
@@ -36,7 +36,7 @@ private struct Neighbour
public int x;
public int y;
}
-private static const Neighbour neighbour_map[] =
+private const Neighbour neighbour_map[] =
{
{-1, 1},
{0, 1},
diff --git a/src/theme-selector-dialog.vala b/src/theme-selector-dialog.vala
index 26ba3c2..b804abf 100644
--- a/src/theme-selector-dialog.vala
+++ b/src/theme-selector-dialog.vala
@@ -1,6 +1,6 @@
private class PreviewField : Minefield
{
- private static const Neighbour neighbour_map[] =
+ private const Neighbour neighbour_map[] =
{
{-1, 1},
{0, 1},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]