[gnome-usage] code style: add a semicolon at the end of the enums
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage] code style: add a semicolon at the end of the enums
- Date: Fri, 10 Dec 2021 12:34:54 +0000 (UTC)
commit 1543db3e49542f2c0bbb2fce5ba61e02ae26755f
Author: Nahuel Gomez <contact nahuelgomez com ar>
Date: Thu Dec 9 10:24:26 2021 -0300
code style: add a semicolon at the end of the enums
This will allow to extend them with methods if necessary.
src/process-list-box.vala | 2 +-
src/process.vala | 2 +-
src/storage/storage-view-item.vala | 2 +-
src/utils.vala | 2 +-
src/window.vala | 4 ++--
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/process-list-box.vala b/src/process-list-box.vala
index d3dff32..166942c 100644
--- a/src/process-list-box.vala
+++ b/src/process-list-box.vala
@@ -20,7 +20,7 @@
public enum Usage.ProcessListBoxType {
PROCESSOR,
- MEMORY
+ MEMORY;
}
public class Usage.ProcessListBox : Gtk.ListBox {
diff --git a/src/process.vala b/src/process.vala
index b8beb65..b5d158d 100644
--- a/src/process.vala
+++ b/src/process.vala
@@ -241,5 +241,5 @@ public class Usage.Process : Object {
public enum Usage.ProcessStatus {
RUNNING,
SLEEPING,
- DEAD
+ DEAD;
}
diff --git a/src/storage/storage-view-item.vala b/src/storage/storage-view-item.vala
index c2724c6..59e2ff5 100644
--- a/src/storage/storage-view-item.vala
+++ b/src/storage/storage-view-item.vala
@@ -24,7 +24,7 @@ public enum Usage.StorageViewType {
OS,
UP_FOLDER,
AVAILABLE_GRAPH,
- ROOT_ITEM
+ ROOT_ITEM;
}
public class Usage.StorageViewItem : GLib.Object {
diff --git a/src/utils.vala b/src/utils.vala
index 27068e1..cd4410e 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -84,7 +84,7 @@ public class Usage.Utils {
public enum Usage.UserAccountType {
STANDARD,
- ADMINISTRATOR,
+ ADMINISTRATOR;
}
[DBus (name = "org.freedesktop.Accounts")]
diff --git a/src/window.vala b/src/window.vala
index 6196d7f..31528f4 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -21,12 +21,12 @@
public enum Usage.Views {
PERFORMANCE,
- STORAGE,
+ STORAGE;
}
public enum Usage.HeaderBarMode {
PERFORMANCE,
- STORAGE,
+ STORAGE;
}
[GtkTemplate (ui = "/org/gnome/Usage/ui/window.ui")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]