Pass by value to get_filesystem_object()

get_filesystem_object() takes a constant reference to a FILESYSTEM, but
FILESYSTEM is just an enumeration.  So that's a pointer to a constant
int.  Just pass by value instead.
This commit is contained in:
Mike Fleetwood 2014-10-09 20:02:31 +01:00 committed by Curtis Gedak
parent 53a8ccfe16
commit e3a1b93a6d
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public:
Glib::ustring get_libparted_version() ; Glib::ustring get_libparted_version() ;
Glib::ustring get_thread_status_message() ; Glib::ustring get_thread_status_message() ;
FileSystem * get_filesystem_object( const FILESYSTEM & filesystem ) ; FileSystem * get_filesystem_object( FILESYSTEM filesystem );
static bool filesystem_resize_disallowed( const Partition & partition ) ; static bool filesystem_resize_disallowed( const Partition & partition ) ;
private: private:
//detectionstuff.. //detectionstuff..

View File

@ -3209,7 +3209,7 @@ bool GParted_Core::calculate_exact_geom( const Partition & partition_old,
return succes ; return succes ;
} }
FileSystem * GParted_Core::get_filesystem_object( const FILESYSTEM & filesystem ) FileSystem * GParted_Core::get_filesystem_object( FILESYSTEM filesystem )
{ {
if ( FILESYSTEM_MAP .count( filesystem ) ) if ( FILESYSTEM_MAP .count( filesystem ) )
return FILESYSTEM_MAP[ filesystem ] ; return FILESYSTEM_MAP[ filesystem ] ;