Bug #539092: Deletion of unnecessary null pointer checks
A few null pointer checks were deleted because they were not needed any more. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
This commit is contained in:
parent
02af76c1ef
commit
1e2562adda
|
@ -344,8 +344,7 @@ void Dialog_Base_Partition::Check_Change()
|
|||
|
||||
Dialog_Base_Partition::~Dialog_Base_Partition()
|
||||
{
|
||||
if ( frame_resizer_base )
|
||||
delete frame_resizer_base ;
|
||||
delete frame_resizer_base;
|
||||
}
|
||||
|
||||
} //GParted
|
||||
|
|
|
@ -435,8 +435,6 @@ Frame_Resizer_Base::~Frame_Resizer_Base()
|
|||
this ->get_colormap() ->free_colors( color_partition, 1 ) ;
|
||||
this ->get_colormap() ->free_colors( color_arrow_rectangle, 1 ) ;
|
||||
|
||||
if ( cursor_resize )
|
||||
delete cursor_resize ;
|
||||
if ( cursor_move )
|
||||
delete cursor_move ;
|
||||
delete cursor_resize;
|
||||
delete cursor_move;
|
||||
}
|
||||
|
|
|
@ -2868,8 +2868,7 @@ bool GParted_Core::calculate_exact_geom( const Partition & partition_old,
|
|||
|
||||
bool GParted_Core::set_proper_filesystem( const FILESYSTEM & filesystem )
|
||||
{
|
||||
if ( p_filesystem )
|
||||
delete p_filesystem ;
|
||||
delete p_filesystem;
|
||||
|
||||
switch( filesystem )
|
||||
{
|
||||
|
@ -3112,8 +3111,7 @@ PedExceptionOption GParted_Core::ped_exception_handler( PedException * e )
|
|||
|
||||
GParted_Core::~GParted_Core()
|
||||
{
|
||||
if ( p_filesystem )
|
||||
delete p_filesystem ;
|
||||
delete p_filesystem;
|
||||
}
|
||||
|
||||
} //GParted
|
||||
|
|
Loading…
Reference in New Issue