[gparted] Set FSType when constructing FS in luks::get_filesystem_support()



commit 465bd61e265c57192e6944567bd73fa033394648
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Wed Jun 13 07:01:33 2018 +0100

    Set FSType when constructing FS in luks::get_filesystem_support()
    
    This is functionally identical, but is just to follow established coding
    pattern [1] of specifying the FSType when constructing struct FS, rather
    and setting it afterwards.  luks.cc was added after the aforementioned
    commit, but was being developed in parallel so was created [2] following
    the old coding pattern.
    
    [1] 1a4cefb9601de47a1d4fdd31d60be9e37fadda2d
        Initialise all struct FS members
    
    [2] 070d734e57e8c10cfc4264b34e8bd95bba7cf3ff
        Add busy detection of LUKS mapping (#760080)

 src/luks.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/luks.cc b/src/luks.cc
index 5ea3e867..0a803e5a 100644
--- a/src/luks.cc
+++ b/src/luks.cc
@@ -42,8 +42,7 @@ const Glib::ustring & luks::get_custom_text( CUSTOM_TEXT ttype, int index ) cons
 
 FS luks::get_filesystem_support()
 {
-       FS fs;
-       fs.filesystem = FS_LUKS;
+       FS fs( FS_LUKS );
 
        fs.busy = FS::EXTERNAL;
        fs.read = FS::EXTERNAL;


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