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:
parent
53a8ccfe16
commit
e3a1b93a6d
|
@ -60,7 +60,7 @@ public:
|
|||
Glib::ustring get_libparted_version() ;
|
||||
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 ) ;
|
||||
private:
|
||||
//detectionstuff..
|
||||
|
|
|
@ -3209,7 +3209,7 @@ bool GParted_Core::calculate_exact_geom( const Partition & partition_old,
|
|||
return succes ;
|
||||
}
|
||||
|
||||
FileSystem * GParted_Core::get_filesystem_object( const FILESYSTEM & filesystem )
|
||||
FileSystem * GParted_Core::get_filesystem_object( FILESYSTEM filesystem )
|
||||
{
|
||||
if ( FILESYSTEM_MAP .count( filesystem ) )
|
||||
return FILESYSTEM_MAP[ filesystem ] ;
|
||||
|
|
Loading…
Reference in New Issue