Mark remaining get_filesystem_*() methods as returning const strings

This commit is contained in:
Mike Fleetwood 2021-04-03 15:12:08 +01:00 committed by Curtis Gedak
parent 1c9ecc5dbd
commit c4ca7d3e9b
2 changed files with 4 additions and 4 deletions

View File

@ -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 ) ;

View File

@ -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)
{