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:
Mike Fleetwood 2018-10-14 13:39:40 +01:00 committed by Curtis Gedak
parent 2bbe7fcc45
commit c421bcbff6
2 changed files with 4 additions and 4 deletions

View File

@ -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>"),

View File

@ -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;
@ -193,8 +193,8 @@ void Partition::Set_Unallocated( const Glib::ustring & device_path,
sector_size,
inside_extended,
false );
status = GParted::STAT_REAL ;
status = STAT_REAL;
}
void Partition::set_unpartitioned( const Glib::ustring & device_path,