[gparted] Move enum CUSTOM_TEXT into FileSystem.h
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Move enum CUSTOM_TEXT into FileSystem.h
- Date: Mon, 23 Jul 2018 17:15:25 +0000 (UTC)
commit fc167a71a37332f8afa44cebbe1530435f6128b3
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Tue Jun 19 07:39:23 2018 +0100
Move enum CUSTOM_TEXT into FileSystem.h
The CUSTOM_TEXT enumeration is exclusively used as the type of one of
the parameters to the functions get_generic_text() and get_custom_text()
in the FileSystem class and derived classes. The definition of the
enumeration therefore belongs in FileSystem.h. Move it.
include/FileSystem.h | 9 +++++++++
include/Utils.h | 9 ---------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/include/FileSystem.h b/include/FileSystem.h
index f4df2baf..db185c33 100644
--- a/include/FileSystem.h
+++ b/include/FileSystem.h
@@ -31,6 +31,15 @@
namespace GParted
{
+enum CUSTOM_TEXT
+{
+ CTEXT_NONE,
+ CTEXT_ACTIVATE_FILESYSTEM, // Activate text ('Mount', 'Swapon', VG 'Activate', ...)
+ CTEXT_DEACTIVATE_FILESYSTEM, // Deactivate text ('Unmount', 'Swapoff', VG 'Deactivate', ...)
+ CTEXT_CHANGE_UUID_WARNING, // Warning to print when changing UUIDs
+ CTEXT_RESIZE_DISALLOWED_WARNING // File system resizing currently disallowed reason
+};
+
// Minimum and maximum file system size limits
struct FS_Limits
{
diff --git a/include/Utils.h b/include/Utils.h
index 93402ae8..f1486598 100644
--- a/include/Utils.h
+++ b/include/Utils.h
@@ -114,15 +114,6 @@ enum SIZE_UNIT
UNIT_TIB = 5
} ;
-enum CUSTOM_TEXT
-{
- CTEXT_NONE,
- CTEXT_ACTIVATE_FILESYSTEM, // Activate text ('Mount', 'Swapon', VG 'Activate', ...)
- CTEXT_DEACTIVATE_FILESYSTEM, // Deactivate text ('Unmount', 'Swapoff', VG 'Deactivate',
...)
- CTEXT_CHANGE_UUID_WARNING, // Warning to print when changing UUIDs
- CTEXT_RESIZE_DISALLOWED_WARNING // File system resizing currently disallowed reason
-} ;
-
class Utils
{
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]