[retro-gtk] Fix 'static const' constants to simply 'const'



commit dc012655b486060bbf754eb3d66184593331739b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Sep 9 12:11:56 2016 +0200

    Fix 'static const' constants to simply 'const'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771169

 retro-gobject/hardware-render.vala     |    2 +-
 retro-gobject/log/file-stream-log.vala |    2 +-
 retro-gobject/retro.vala               |    2 +-
 retro-gtk/input/gamepad-view.vala      |    6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/retro-gobject/hardware-render.vala b/retro-gobject/hardware-render.vala
index 0eb8040..c040986 100644
--- a/retro-gobject/hardware-render.vala
+++ b/retro-gobject/hardware-render.vala
@@ -6,7 +6,7 @@ namespace Retro {
  * TODO Change visibility once the interface have been tested.
  */
 internal interface HardwareRender: Object {
-       public static const ulong FRAME_BUFFER_VALID = ulong.MAX;
+       public const ulong FRAME_BUFFER_VALID = ulong.MAX;
 
        [CCode (has_target = false)]
        public delegate void ProcAdress ();
diff --git a/retro-gobject/log/file-stream-log.vala b/retro-gobject/log/file-stream-log.vala
index f7daa0b..30fd50c 100644
--- a/retro-gobject/log/file-stream-log.vala
+++ b/retro-gobject/log/file-stream-log.vala
@@ -6,7 +6,7 @@ namespace Retro {
  * Sends log messages from a {@link Core} to a FileStream.
  */
 public class FileStreamLog: Object, Retro.Log {
-       private static const string default_color = "\033[39m";
+       private const string default_color = "\033[39m";
 
        /**
         * The FileStream to log the core's messages to.
diff --git a/retro-gobject/retro.vala b/retro-gobject/retro.vala
index a9faf7a..e353503 100644
--- a/retro-gobject/retro.vala
+++ b/retro-gobject/retro.vala
@@ -6,7 +6,7 @@ namespace Retro {
 /**
  * The version of Libretro implemented by Retro.
  */
-public static const uint API_VERSION = 1;
+public const uint API_VERSION = 1;
 
 private const string ENV_PLUGIN_PATH = "RETRO_PLUGIN_PATH_1_0";
 
diff --git a/retro-gtk/input/gamepad-view.vala b/retro-gtk/input/gamepad-view.vala
index cc94b07..db73cf7 100644
--- a/retro-gtk/input/gamepad-view.vala
+++ b/retro-gtk/input/gamepad-view.vala
@@ -6,12 +6,12 @@ using Cairo;
 namespace RetroGtk {
 
 public class GamepadView : DrawingArea {
-       private static const StateFlags DEFAULT_STATE = StateFlags.NORMAL;
-       private static const StateFlags HIGHLIGHT_STATE = StateFlags.LINK;
+       private const StateFlags DEFAULT_STATE = StateFlags.NORMAL;
+       private const StateFlags HIGHLIGHT_STATE = StateFlags.LINK;
 
        private bool[] button_lightning;
 
-       private static const double TAU = Math.PI * 2;
+       private const double TAU = Math.PI * 2;
 
        private Context cr;
 


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