Strip unnecessary scope from GParted::STAT_* (!20)
The code inconsistently uses GParted:: scope in front of STAT_*. $ fgrep 'GParted::STAT_' src/*.cc | wc -l 3 $ egrep '[^:]STAT_' src/*.cc | wc -l 41 GParted:: scope resolution is unnecessary as all the code is inside the GParted scope, except for main(). So remove it. Closes !20 - Minor namespace and scope operator tidy-ups
This commit is contained in:
parent
2bbe7fcc45
commit
c421bcbff6
|
@ -610,7 +610,7 @@ void Dialog_Partition_Info::Display_Info()
|
|||
top++, bottom++,
|
||||
Gtk::FILL );
|
||||
|
||||
if ( partition.filesystem != FS_UNALLOCATED && partition .status != GParted::STAT_NEW )
|
||||
if (partition.filesystem != FS_UNALLOCATED && partition.status != STAT_NEW)
|
||||
{
|
||||
// name
|
||||
table->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Name:") ) + "</b>"),
|
||||
|
|
|
@ -38,7 +38,7 @@ void Partition::Reset()
|
|||
{
|
||||
path.clear();
|
||||
messages .clear() ;
|
||||
status = GParted::STAT_REAL ;
|
||||
status = STAT_REAL;
|
||||
type = TYPE_UNALLOCATED;
|
||||
alignment = ALIGN_STRICT ;
|
||||
filesystem = FS_UNALLOCATED;
|
||||
|
@ -194,7 +194,7 @@ void Partition::Set_Unallocated( const Glib::ustring & device_path,
|
|||
inside_extended,
|
||||
false );
|
||||
|
||||
status = GParted::STAT_REAL ;
|
||||
status = STAT_REAL;
|
||||
}
|
||||
|
||||
void Partition::set_unpartitioned( const Glib::ustring & device_path,
|
||||
|
|
Loading…
Reference in New Issue