[gparted] Pass by value to get_filesystem_object()
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Pass by value to get_filesystem_object()
- Date: Thu, 30 Oct 2014 16:01:34 +0000 (UTC)
commit e3a1b93a6df9f52a69f31d5b962d16e0b4c1189a
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Thu Oct 9 20:02:31 2014 +0100
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.
include/GParted_Core.h | 2 +-
src/GParted_Core.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/include/GParted_Core.h b/include/GParted_Core.h
index 122923e..afbef92 100644
--- a/include/GParted_Core.h
+++ b/include/GParted_Core.h
@@ -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..
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index b49b3fb..12e796e 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -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 ] ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]