Cleanup white space in read_mountpoints_from_file method
This commit is contained in:
parent
98f7470b25
commit
ae912379cc
|
@ -629,8 +629,9 @@ void GParted_Core::init_maps()
|
|||
}
|
||||
}
|
||||
|
||||
void GParted_Core::read_mountpoints_from_file( const Glib::ustring & filename,
|
||||
std::map< Glib::ustring, std::vector<Glib::ustring> > & map )
|
||||
void GParted_Core::read_mountpoints_from_file(
|
||||
const Glib::ustring & filename,
|
||||
std::map< Glib::ustring, std::vector<Glib::ustring> > & map )
|
||||
{
|
||||
std::string line ;
|
||||
char node[4096+1], mountpoint[4096+1] ;
|
||||
|
@ -652,8 +653,8 @@ void GParted_Core::read_mountpoints_from_file( const Glib::ustring & filename,
|
|||
line .replace( index, 4, " " ) ;
|
||||
|
||||
//only add this path if it exists
|
||||
if ( file_test( line, Glib::FILE_TEST_EXISTS ) )
|
||||
map[ node ] .push_back( line ) ;
|
||||
if ( file_test( line, Glib::FILE_TEST_EXISTS ) )
|
||||
map[ node ] .push_back( line ) ;
|
||||
}
|
||||
|
||||
file .close() ;
|
||||
|
|
Loading…
Reference in New Issue