[gparted] Mark remaining get_filesystem_*() methods as returning const strings
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Mark remaining get_filesystem_*() methods as returning const strings
- Date: Sun, 25 Apr 2021 16:09:19 +0000 (UTC)
commit c4ca7d3e9b854f6896809caf9b2533c0747b8947
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sat Apr 3 15:12:08 2021 +0100
Mark remaining get_filesystem_*() methods as returning const strings
include/Utils.h | 4 ++--
src/Utils.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/include/Utils.h b/include/Utils.h
index da1047d0..0e0e6865 100644
--- a/include/Utils.h
+++ b/include/Utils.h
@@ -141,11 +141,11 @@ public:
static Glib::RefPtr<Gdk::Pixbuf> get_color_as_pixbuf(FSType fstype, int width, int height);
static int get_max_partition_name_length( Glib::ustring & tabletype );
static int get_filesystem_label_maxlength(FSType fstype);
- static Glib::ustring get_filesystem_string(FSType fstype);
+ static const Glib::ustring get_filesystem_string(FSType fstype);
static const Glib::ustring get_encrypted_string();
static const Glib::ustring get_filesystem_string( bool encrypted, FSType fstype );
static const Glib::ustring get_filesystem_kernel_name( FSType fstype );
- static Glib::ustring get_filesystem_software(FSType fstype);
+ static const Glib::ustring get_filesystem_software(FSType fstype);
static const Glib::ustring generate_encryption_mapping_name(const Glib::ustring& path);
static bool kernel_supports_fs( const Glib::ustring & fs ) ;
static bool kernel_version_at_least( int major_ver, int minor_ver, int patch_ver ) ;
diff --git a/src/Utils.cc b/src/Utils.cc
index 856ee3de..e67b6d89 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -308,7 +308,7 @@ int Utils::get_filesystem_label_maxlength(FSType fstype)
// Return libparted file system name / GParted display name
-Glib::ustring Utils::get_filesystem_string(FSType fstype)
+const Glib::ustring Utils::get_filesystem_string(FSType fstype)
{
switch (fstype)
{
@@ -428,7 +428,7 @@ const Glib::ustring Utils::get_filesystem_kernel_name( FSType fstype )
}
-Glib::ustring Utils::get_filesystem_software(FSType fstype)
+const Glib::ustring Utils::get_filesystem_software(FSType fstype)
{
switch (fstype)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]