[gparted/psusi/refactor] fixup! Pass Partition instead of just its path to FileSystem::copy()



commit 9c374ca3059d0bb7e34983c50e7dde76db8d957e
Author: Phillip Susi <psusi ubuntu com>
Date:   Sat Feb 2 17:54:28 2013 -0500

    fixup! Pass Partition instead of just its path to FileSystem::copy()

 include/ntfs.h |    4 ++--
 src/ntfs.cc    |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/include/ntfs.h b/include/ntfs.h
index c34c24f..367c488 100644
--- a/include/ntfs.h
+++ b/include/ntfs.h
@@ -37,8 +37,8 @@ public:
 	bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
 	bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
 	bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
-	bool copy( const Glib::ustring & src_part_path, 
-		   const Glib::ustring & dest_part_path,
+	bool copy( const Partition & src_part, 
+		   Partition & dest_part,
 		   OperationDetail & operationdetail ) ;
 	bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
 
diff --git a/src/ntfs.cc b/src/ntfs.cc
index b46d343..033eaf7 100644
--- a/src/ntfs.cc
+++ b/src/ntfs.cc
@@ -224,11 +224,11 @@ bool ntfs::resize( const Partition & partition_new, OperationDetail & operationd
 	return return_value ;
 }
 
-bool ntfs::copy( const Glib::ustring & src_part_path,
-		 const Glib::ustring & dest_part_path, 
+bool ntfs::copy( const Partition & src_part,
+		 Partition & dest_part, 
 		 OperationDetail & operationdetail )
 {
-	return ! execute_command( "ntfsclone -f --overwrite " + dest_part_path + " " + src_part_path,
+	return ! execute_command( "ntfsclone -f --overwrite " + dest_part.get_path() + " " + src_part.get_path(),
 				  operationdetail,
 				  false,
 				  true );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]